Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1180
Display custom tooltip when mouse over XamDataGrid header
posted

Hi Guys,

I want to display custom tooltip when mouse over XamDataGrid according to current field. I can re-style the tooltip by using below code.

 

 

 

 

 

 

 

<Style TargetType="{x:Type igDP:LabelPresenter}">

<Setter Property="ToolTip" Value="{StaticResource headerToolTipControl}"/>

 

 

 

</Style>

headerToolTipControl looks like:

<StackPanel x:Key="headerToolTipControl">

<StackPanel.Resources>

 

 

 

 

<Style x:Key="PropertyToolTipPartsStyle" TargetType="StackPanel">

 

 

 

 

<Setter Property="Orientation" Value="Horizontal" />

 

 

 

 

</Style>

 

 

 

 

</StackPanel.Resources>

 

 

 

 

<StackPanel Style="{StaticResource PropertyToolTipPartsStyle}">

 

 

 

 

<TextBlock Text="{Binding Converter={StaticResource headerToolTipConverter

}}"/>

</StackPanel>

 

 

 

 

 

</StackPanel>

Here comes my question. Since my tooltip is based on current mouse over field, how Can I get the current mouse over field in my headerToolTipConverter?

Thanks,

Xin