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
2325
Tool tip on Cell in Xam Data Grid when Tool tip value is empty
posted

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.