I would like to change the highlight purple colour used by the Royal Dark to show selected buttons, highlight current input field and highlight current row in a data grid to a different colour.
ie, I would like to change it to a Royal Blue theme.
I have hundreds of user controls I would want this to apply to. Ideally I would like to apply this at the application level, and not per user control
Hello Gordon,
I have been investigating into a way to change the highlight color for a theme at an application level, and the best thing I can recommend is to include the various ResourceDictionary files for a particular theme in your application and then merge them in your App.Resources in the App.xaml of your WPF application rather than using the actual RoyalDarkTheme object with the ThemeManager in this case.
In version 2020.1 of Infragistics for WPF, these theme files can be found at the following directory: C:\Program Files (x86)\Infragistics\2020.1\WPF\Themes\RoyalDark.
Changing the accent color for the different tools in the Infragistics for WPF toolset can vary by control, and I would recommend that you utilize a WPF visual tree inspector tool to determine which styles would need to be modified. A good example of this is the third-party tool Snoop, which you can download here: https://archive.codeplex.com/?p=snoopwpf.
Please let me know if you have any other questions or concerns on this matter.
I allow my users to pick their own themes, and they can change these at runtime. So I wouldn't want things applied regardless. I would only want to do this be applied if they have set the theme to Royal dark
I have tried Metro Dark, which looks great, but it is too big compared to the themes they can select..
Does no one else use any other dark themes wit IG ?
Allowing your users to pick their themes is fine, as the ResourceDictionaries could still be merged with your Application.Resources – it would just need to be done programmatically.
An alternative in this case would be to derive your own extended theme object, and you can point at the modified ResourceDictionary files to use your custom extended theme with the ThemeManager rather than merging them with the Application.Resources. Here is a link to our online documentation about extending Infragistics themes: https://ko.infragistics.com/help/wpf/thememanager-extending-existing-control-theme.