Hi ,
Can anyone give a sample code for applying custom themes /styles for the Xamdata grid?
Thanks in advance ..
Hello Keerthanaa,
Thank you for your post. I have been looking into it and I can suggest you see this forum post:
http://es.infragistics.com/community/forums/p/2463/15367.aspx
where it is explained what you need to do. Also here is a link to our online documentation:
http://help.infragistics.com/NetAdvantage/WPF/2012.1/CLR4.0/?page=WPF_Creating_a_ThemePack.html
where it is described step by step how to create your own ThemePack. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Hi Stefan,
Thanks for helping me out. I went through the Online Documentation for creating a theme Pack and did the 5 steps explained there. But i get err on the 2nd step where we need to inherit the ResourceSet. The err says "DataPresenter.Locator" doesn't exist . I have added all references as mentioned there.I have given the snippet for reference.
public class DataPresenter : DataPresenterResourceSet<DataPresenter.Locator> { private static DataPresenter g_Instance; public static DataPresenter Instance { get { if (g_Instance == null) g_Instance = new DataPresenter(); return g_Instance; } } } public class Locator : ResourceSetLocator { public override Assembly Assembly { get { return this.GetType().Assembly; } } public override string Theme { get { return "OrangePeel"; } } public override string Grouping { get { return DataPresenterGeneric.Instance.Grouping; } } public override string ResourcePath { get { return @"ResourceSets\DataPresenter\DataPresenter.xaml"; } } }