So it looks like this question has been asked a few times in the forum, like the following.
http://ko.infragistics.com/community/forums/p/12445/53256.aspx
http://ko.infragistics.com/community/forums/p/24506/90583.aspx#90583
This is also a Blog about Resource Washing.
http://ko.infragistics.com/community/blogs/kiril_matev/archive/2010/08/30/theming-your-infragistics-wpf-line-of-business-applications-made-quick-and-easy.aspx
As for the code posted in 2008 I am unsure how to apply it. The post from 2009 looks promising but I did not see any code attached and I was unsure how to use the Style suggestions.
Based on the Blog post about Resource Washing that sounds like a better solution but I could not get the XAML posted to compile and the attached code ZIP file is no longer valid. I would be very interested to know how to apply a "dark theme" to my project. I would like to apply a specific dark color so the Resource Washing sounds like a better solution.
Could someone post a sample project using the Resource Washer to apply a specific dark color (#FF444444) to the Ribbon, DockManager and ContentPane controls?
Thanks,
-eric
Hello Eric,
Thank you for your post. I have been looking into it and I can suggest you use our color tuner tool in order to apply themes to our controls. Here you can find out how to use this tool:
http://ko.infragistics.com/community/blogs/jordan_tsankov/archive/2012/05/01/how-to-use-the-infragistics-color-tuner-in-xaml-applications.aspx
and
http://help.infragistics.com/Help/NetAdvantage/WPF/2012.1/CLR4.0/html/Using_XAML_Color_Tuner.html
It is available since version 12.1.
Hope this helps you.
Thanks very much for this information. I have tried to use the Color Tuner a few times and it does not appear to give me the control over changing the theme as I would like. Is it possible to import all of the XAML files that makeup one of the installed themes into my VS project? Once in my project I would be able to modify them for that project only? ...or is there any documentation about creating my own theme?
Ok based on another forum post I added this to my App.xaml file.
<Style TargetType={x:Type igDoc:PaneHeaderPresenter}> <Setter Property="Background" Value="{StaticResource LightColor}" /> <Setter Property="Foreground" Value="White" /> <Style.Triggers> <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type igDock:ContentPresenter}}, Path=IsActivePane}" Value="True"> <Setter Property="Background" Value="{StaticResource DarkColor}" /> <Setter Property="Foreground" Value="White" /> </DataTrigger> </Style.Triggers></Style>
Using this XAML I was able to change the style of the header for a ContentPane to mostly match the Onyx Theme of the Ribbon. In my project I have several ContentPane controls and when the app loads it does not seem to apply this Style to the first active ContentPane. It still shows the default blue color until I unpin and re-pin it. Right now my workaround for that was to have the ContentPane controls either hidden or not pinned at start-up. Then when the user opens one or pins one it shows the correct style. Any thoughts on this?
Also, is there any documentation that says to use the PaneHeaderPresenter to style the ContentPane? What about other controls like tabs in a XamDockManager. I have a few tabs that still show the default blue and I would like to change them as well but I am not sure which object I should create a style for.
Well slowly its starting to look more like I want. :-)
Here you can see how to create a Theme pack:
http://help.infragistics.com/NetAdvantage/WPF/2012.2/CLR4.0/?page=WPF_Creating_a_ThemePack.html
Also I can suggest you see the xamDockManager / Style section in our Samples Browser, where it is shown how to style the control. The default Styles can be found here:
C:\Program Files (x86)\Infragistics\NetAdvantage 2012.2\WPF\DefaultStyles\DockManager folder.