<TextBlock x:Name="textBlock" Text="Hi I am Parent Tooltip" Grid.Row="2" >
<TextBlock.ToolTip>
<ToolTip >
<TextBlock x:Name="toolTip" Text="{Binding Path=Text, ElementName=textBlock}"></TextBlock>
</ToolTip>
</TextBlock.ToolTip>
</TextBlock>
Edit: Added name for TextBlock tooltip above. Then add the following code to your code (in the constructor):
NameScope.SetNameScope(toolTip, NameScope.GetNameScope(this));
That should work.
source
share