wpf tooltip on datagrid cell. [modified]
WPF
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, i have a gridview and in style of celltemplate i define tooltip equals to whatever content that cell have. So it will display blank tooltip while content equals to null. So what to do for not displaying tooltip if data is not available in cell? Any tricks in datatrigger?? Solved : Done by writing following code : <DataTrigger Value="{x:Null}" Binding="{Binding Content, RelativeSource={RelativeSource Self}}"> <Setter Value="false" Property="ToolTipService.IsEnabled"/> </DataTrigger>
modified on Tuesday, April 20, 2010 6:53 AM