As an alternative, I can suggest the following: created a Style for ToolTip with zero Width and Height :
<Style x:Key="NullToolTip" TargetType="{x:Type ToolTip}"> <Setter Property="Width" Value="0" /> <Setter Property="Height" Value="0" /> <Setter Property="Content" Value="{x:Null}" /> </Style>
When creating a ToolTip using this Style and placed in Resources :
<ToolTip x:Key="NoToolTip" Style="{StaticResource NullToolTip}" />
And assign the control that ToolTip wants to disable:
<TabItem Header="Tab1" ToolTip="Tooltip of tab1"> <StackPanel> <TextBlock Text="Content of tab1 with its own tooltip" ToolTip="Tooltip on content of tab1"/> <TextBlock Text="more content of tab1" ToolTipService.ToolTip="{StaticResource NoToolTip}" /> </StackPanel> </TabItem>
Note. A similar problem occurs if you use ToolTip for TreeViewItem . His children inherit the ToolTip parent.
source share