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)
Hi Stefan.
I don't think there is much more you can do re: this topic. Thanks for checking in!
Hello,
I am just checking if you require any assistance or clarification on the matter.
Since the XamDataGrid and Persistence Framework are designed to work this way, the thing you can do is suggesting new product idea for future versions (or vote for existing ones) at http://ideas.infragistics.com.
There are many benefits to submitting an product idea:
- Direct communication with our product management team regarding your product idea.
- Notifications whenever new information regarding your idea becomes available.
- Ability to vote on your favorite product ideas to let us know which ones are the most important to you. You will have ten votes for this and can change which ideas you are voting for at any time.
- Allow you to shape the future of our products by requesting new controls and products altogether.
- You and other developers can discuss existing product ideas with members of our Product Management team.
Steps to create your idea:
The Product Idea site puts you in the driver’s seat and allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
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:
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.