Good day. I would like to know how to create color schemes for the application. Maybe some kind of separate config or via * .setting in Properties.

To change the font color throughout the application. Window color, frames and so on

    1 answer 1

    I would do this:

    1. Defined sets of colors that will be customized.
    2. I would put a ResourceDictionary set in the application, one for each set in which I would define the desired colors.
    3. The UI would refer to the right colors via DynamicResource .
    4. Next, it makes sense to write a small skin manager that will
      • know all the schemes
      • provide schema selection by name
      • when choosing a schema, you need to find a ResourceDictionary and connect it as a MergedDictionary to Application.Resources .
    5. The selected scheme can be put in Properties.Settings , and at the beginning of the program to load it through the manager.