Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
210
Can the highlight colour in a theme be changed at application level?
posted

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

Parents
  • 34810
    Offline posted

    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.

Reply Children