Hi
I have the below style for displaying Tool Tip.
<Style TargetType="{x:Type igDP:CellValuePresenter}" x:Key="TTCC" > <Setter Property="ToolTip"> <Setter.Value> <StackPanel> <TextBlock Text="{Binding DataItem.ConnectedComponentNumber}"> </TextBlock> <TextBlock Text="{Binding DataItem.ConnectedComponentDescription}"> </TextBlock> </StackPanel> </Setter.Value> </Setter> </Style>
And referencing the Style as below.
<igDP:Field Name="ConnectedComponentNumber" Label="Connection" Width="Auto" > <igDP:Field.Settings> <igDP:FieldSettings CellValuePresenterStyle="{StaticResource ResourceKey=TTCC}"/> </igDP:Field.Settings> </igDP:Field>
When the tool tip value is empty, & when i hover on the cell it is showing me an empty rectangle.
i want to hide that empty rectangle when the value is empty. How can i achieve this.
HI,
I set up a style targeting the Tooltip. In the style i set up a binding on the visiblity property and use a converter to return the proper visiblity based on the value of the data.
Please review the attach sample.
Sincerely,
Matt
Devleoper Support Engineer