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"; } } }
The definition of the DataPresenterResourceSet should be DataPresenterResourceSet<Locator>. I have logged this with development under ID: 118181 and I have also created a support ticket on your behalf: CAS-97185-ZDHBRY and have linked the development issue to it, so that you can get automatically updated, when a Service Release containing the fix is available for download. You can get the new version from our website’s “My IG”, “My Keys & Downloads” tags: https://es.infragistics.com/Membership/Default.aspx?panel=Downloads#Downloads
You can also monitor the support ticket’s progress through the “My Support Activity” tag: https://es.infragistics.com/Membership/MySupport.aspx
I also attached a sample project, where I followed all the steps and everything works as expected on my side, when I change the definition of the mentioned class.
thanks a lot Stefan ..It works fyn :) ... I have got another doubt
How do you load a user control/ a "xaml" page into the pane of a XamDock manger?
Thank You ,
Keerthanaa
Thanks a lot !!!
Here it is explained how to add Content to the ContentPanes:
http://help.infragistics.com/Help/NetAdvantage/WPF/2012.1/CLR4.0/html/xamDockManager_Add_Content_to_a_ContentPane.html