use Enabled and showtooltipondisabled to show tooltip

This commit is contained in:
Hongtao Zhang 2022-11-18 23:31:17 -06:00
parent 48aaf3a7db
commit 337e6ca427
No known key found for this signature in database
GPG key ID: 75F655B91C7AC9BB

View file

@ -139,10 +139,11 @@
x:Name="Title"
VerticalAlignment="Center"
DockPanel.Dock="Left"
IsHitTestVisible="False"
Style="{DynamicResource ItemTitleStyle}"
Text="{Binding Result.Title}"
ToolTip="{Binding ShowTitleToolTip}">
ToolTip="{Binding ShowTitleToolTip}"
ToolTipService.ShowOnDisabled="True"
IsEnabled="False">
<vm:ResultsViewModel.FormattedText>
<MultiBinding Converter="{StaticResource HighlightTextConverter}">
<Binding Path="Result.Title" />
@ -153,11 +154,11 @@
<TextBlock
x:Name="SubTitle"
Grid.Row="1"
IsHitTestVisible="False"
IsEnabled="False"
ToolTipService.ShowOnDisabled="True"
Style="{DynamicResource ItemSubTitleStyle}"
Text="{Binding Result.SubTitle}"
ToolTip="{Binding ShowSubTitleToolTip}" />
ToolTip="{Binding ShowSubTitleToolTip}"/>
</Grid>
</Grid>