Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to set DataGridColumn's ToolTip

I tried the following:

<tk:DataGridTextColumn 
    Header="Item" 
    Binding="{Binding Item.Title}" 
    ToolTipService.ToolTip="{Binding Item.Description}" />

And I don't see any tool tip.

Any ideas? Is it even implemented?

like image 632
Shimmy Weitzhandler Avatar asked Nov 14 '09 20:11

Shimmy Weitzhandler


1 Answers

This works for me:

<Style TargetType="{x:Type Custom:DataGridColumnHeader}">
   <Style.Triggers>
      <Trigger Property="IsMouseOver" Value="True">
          <Setter Property="ToolTip" Value="{Binding Column.(ToolTipService.ToolTip), RelativeSource={RelativeSource Self}}"/>
      </Trigger>
   </Style.Triggers>
</Style>
like image 185
Boris Avatar answered Nov 02 '22 08:11

Boris