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
1024
TooTip while in edit mode
posted

Hi,

I,m trying to create a style trigger, which creates a tooltip for a cell, when it enters edit mode.

I have 2 editable fields and I want each one to show another nessage in the tooltip. I'm saving the nessage currently in the tag of the field.

I tryed this:

 

 

 

 

 

 

<

 

Style TargetType="{x:Type igDP:CellValuePresenter}">

 

 

 

<Style.Triggers>

 

 

 

<Trigger Property="IsInEditMode" Value="true">

 

 

 

<Setter Property="ToolTip" Value="{Binding Field.Tag}">

 

 

 

</Trigger>

 

 

 

</Style.Triggers>

 

 

 

</Style>

but it doen't work

  • 138253
    Offline posted

    Hello gadi_vi,

    Thank you for your post. I have been looking through it and I suggest you set the Value of the Setter like this:

    Value="{Binding RelativeSource={RelativeSource Self},Path=Record.FieldLayout.Fields[num].Tag}"

    where “num” is the index of the Field from which you want to get the tag. You should also create two styles for each Field and change the “num” depending on the Field. Please note, we are making efforts to ensure all posts are addressed by an Infragistics expert. We believe that the other community members could benefit from this thread as well.

    Feel free to write me if you need further assistance.