I have datagrid control in my project and i want to add tooltip to datagridcells. I customized the tooltip control and put a textbox control in it. I tried to bind cell content value to textbox but it did not work.
When I use the Tooltip contol directly (without customizing) it is worked.
This is xaml code:
Without customizing the tooltip binding is working.
<Style TargetType="{x:Type DataGridCell}">
<Setter Property="ToolTip" Value="{Binding RelativeSource={RelativeSource Self},Path=Content.Text}"/>
</Style>
But customized tooltip binding is not working.
<Style TargetType="DataGridCell">
<Setter Property="ToolTip">
<Setter.Value>
<TextBox Text="{Binding RelativeSource={RelativeSource Self},Path=Content.Text}"/>
</Setter.Value>
</Setter>
</Style>