Given a UserControl which features a DataGrid, with a column defined as follows;
<DataGridTextColumn Binding="{Binding Path=MyStringProperty}"/>
And a resource dictionary applied to the UserControl which defines a style for DataGridCell;
<Style TargetType="{x:Type DataGridCell}">
Is it possible to apply a tool-tip to the cell that uses the bound value?
I've tried;
<Style TargetType="{x:Type DataGridCell}">
<Setter Property="ToolTip" Value="{Binding}" />
</Style>
I naively assumed that the binding at this point would be the value of MyStringProperty, because I thought that setting a binding on a parent item would affect the binding of the child item (i.e. the cell), but it actually seems to be the binding of the overall row.
Is there some way to reference the object which is bound to the column from the cell's style setter?