Closed jeromelaban closed 1 year ago
This looks fixed to me.
<Button x:Name="btn" Content="{Binding}" DataContext="button DC">
<ToolTipService.ToolTip>
<ToolTip x:Name="tt" Content="{Binding}" Width="350" Height="60"/>
</ToolTipService.ToolTip>
</Button>
I also tried setting the DataContext in the code behind instead of directly in the xaml. Still works.
Current behavior
The datacontext of the host of the ToolTip does not propagate the value properly.
How to reproduce it (as minimally and precisely as possible)
https://playgroundcanary.z19.web.core.windows.net/#ccd0d76f
Workaround
Forwarding the
DataContext
manually using an ElementName can be used as a workaround:Environment
Nuget Package:
Package Version(s):
Affected platform(s):
Visual Studio:
Relevant plugins:
Anything else we need to know?