I've just started evaluating the NetAdvantage for WPF controls and so far I'm very impressed. I'm developing an application that will make use of the xamRibbon and a number of xamDataGrid. The Office2k7Black theme gives all the Infragistics controls a nice look. However any of the standard WPF controls that I need to use do not pick up these themes. I presume that the themes contain styles that are applied to the Infragistics controls only, is this correct? Is there an easy way to apply the same styles as the Office2k7Black theme to the WPF controls? Or do I need to create a bunch of styles for each WPF control I want to use?
If I need to create these styles then is there an easy way of picking up the values of the Office2k7Black theme. For example font types, colors etc.
should also have mentioned that i am applying the themes at the application level with the following in App.xaml. Was hoping that applying them at this level would get it picked up by all controls, but it just seems to be the Infragistics controls that are affected:
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<igThemes:PrimitivesOffice2k7Black/>
<igThemes:DataPresenterOffice2k7Black/>
<igThemes:RibbonOffice2k7Black/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
You're right -- the themes currently only apply to the Infragistics controls. We're currently working on building out the themes to target the system controls as well. In the meantime, you can take advantage of the default resources we ship for the Ribbon (NetAdvantage for WPF Installation Directory\DefaultStyles). You'll find the default templates and brushes for all of the Office themes that you could use as a starting point for the system controls.
Just to add my vote for applying themes to standard WPF controls as well.
Has anyone been able to do this yet? I'd like to extend the theme to the native controls, like Buttons, etc. I'd probably like to start with blue 2k.
Thanks for providing your solution. I have been on vacation and just returned.
In my App.xaml, I copied the files below from the Office2013 theme from Program Files as mentioned in the link above to a Themes folder in my project.
<Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/Themes/Office2013/Styles.Shared.xaml" /> <ResourceDictionary Source="/Themes/Office2013/Styles.WPF.xaml" /> <ResourceDictionary Source="/Themes/Office2013/Theme.Colors.xaml" /> <ResourceDictionary Source="/Themes/Office2013/Office2013.MSControls.Core.Implicit.xaml" /> <!--<ResourceDictionary Source="/Themes/Office2013/Office2013.MSControls.Toolkit.Implicit.xaml" />-->
<!-- I didn't need this one since I'm not using anything from the Toolkit --> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources>
This worked for me.
Can you please give a quick explination on how to include these (the microsoft controls one and the infragistics specifics ones) in app.xaml - merged dictionaries?
Thanks
Can somebody from infragistics please tell how tis can be done with the latest version
Yes, themes for Microsoft controls are available.
http://help.infragistics.com/doc/WPF/2014.1/CLR4.0/?page=MS_Controls_Implicit_Themes.html