Dear community member.
My XamGrid contains an ImageColumn that us used to display a set of icons. Each of these icons has a corresponding state (i.e. an enum value). Ideally I would like to:
The following code works great except: the tool tip will start displaying an image (instead of the enum value) if you deserialize the XamGrid using the PersistenceManager.
To recap:
SAMPLE CODE
<ig:ImageColumn Key="Severity" ValueConverter="{StaticResource EventSeverityToImageConverter}" AllowToolTips="Always"> <ig:ImageColumn.ToolTipContentTemplate> <DataTemplate> <TextBlock Text="{Binding Severity}"/> </DataTemplate> </ig:ImageColumn.ToolTipContentTemplate> <ig:ImageColumn.HeaderTemplate> <DataTemplate> <TextBlock Text="Event Severity"/> </DataTemplate> </ig:ImageColumn.HeaderTemplate> </ig:ImageColumn>
NOTE: EventSeverityToImageConverter converts the given enumeration value into an image (i.e. *.PNG)
Hello,
Thank you for your post. I have been looking into it and I can say that the Infragistics Persistence Framework™ does not intrinsically persist certain types of properties (e.g. AttachedProperties, DataTemplates, Paths, ControlTemplates, Styles and ItemPanelTemplates), so you have to use Identifier, since you use DataTempaltes for the header and tooltip. Here you can find more information about this:
http://help.infragistics.com/doc/Silverlight/2013.2/CLR4.0/?page=Persistence_Identifier.html
Please let me know if this helps you or you have further questions on this matter.
Looking forward for your reply.
Hi Stephen.
Thank you for taking the time to reply to my inquiry.
I had taken a look at the Identifier property, but for coupling & cohesion reasons I decided against using it: