The answer to my question is likely out there but I'm having trouble ferreting it out.
I want to create a complete custom theme but I want to start with the RoyalLight theme. Basically, I would like an example that might show taking all the RoyalLight (for example) into a new project and create a new theme. I am then going to go back and start tweaking the theme for my needs.
I feel like this is probably a good starting point but it is confusing: https://ko.infragistics.com/help/wpf/thememanager-creating-new-custom-theme.
Maybe a sample project would be helpful.
Thx
Rick
I managed to get rid of the error above, I was missing a library reference but now I get this runtime error:
Message='Failed to create a 'TargetType' from the text 'ig:ComboEditorItemControl'.' Line number '329' and line position '48'. XamlParseException: Type reference cannot find type named '{schemas.infragistics.com/xaml}ComboEditorItemControl'.
Michael,
Thank you for your reply but that is not exactly what I was looking for.
My end objective is to create a custom theme by Extending RoyalLight. I like almost all of the styling but not the purple. I want to change the purple across the entire theme to a blue I have selected.
I have been successful now in extending RoyalLight.MSControls.Core.Implicit.xaml and directing it to use the custom Style and theme.colors xaml I provided.
My plan is to move through each control I need and extend it to use my color styling. So to that end I started working on the ComboEditor control by extending RoyalLight.xamComboEditor.xaml. Using the same pattern I used following along for the TileManager example and what I did for the MSControls I added the RoyalLight.xamComboEditor.xaml.
When I add the xaml to my project I get the following error: The name "ComboEditorItemControl" does not exist in the namespace "">schemas.infragistics.com/xaml". I didn't change anything in the xaml file. What am I missing? Another approach to this is the build solution for the RoyalLight theme. I could take that, rename it as I like and then tweak it. Thx Rick
Hello Rick,
In that case I wouldn't worry about our themes since the Button is a microsoft control; we don't have our own button control that you need to reconfigure. We do support microsoft controls as listed here:https://ko.infragistics.com/help/wpf/thememanager-applying-theme-to-supported-ms-wpf-controls
The way to make sure they're styled is as follows:
<ig:ThemeManager.Theme> <ig:Office2013Theme StyleMicrosoftControls="False" /> </ig:ThemeManager.Theme>
In C#:
var office2013Theme = new Office2013Theme {StyleMicrosoftControls = false}; ThemeManager.SetTheme(LayoutRootGrid, office2013Theme);
In Visual Basic:
Dim office2013Theme = New Office2013Theme() With { .StyleMicrosoftControls = False } ThemeManager.SetTheme(LayoutRootGrid, office2013Theme)
Ok I have managed to reproduce the example (FYI ExtendedTheme.xamTileManager.xaml has many typos mostly unclosed quotes)
With that framework I then apllied it to the RoyalLight theme. Now that I have the basic framework of how to do the extension I want to extrapolate that to changing the colors of various controls. The first I wanted to start with is the Button. In RoyalLight the button background is "purple" when clicked. I want to change that to my desired color. I thought I could start by making changes in the Theme.Colors somehow I was able to have an effect but I think mostly all I did was confuse things so now I don't get purple but I don't get my color either.
So I will ask how would I change the background color of a button by extending the RoyalLight theme?
Yes, you may extend an existing theme.
eg.
https://ko.infragistics.com/help/wpf/thememanager-extending-existing-control-theme
Themes location:C:\Program Files (x86)\Infragistics\2019.1\WPF\Themes
Let me know if you have any questions.