Use UI themes to set the appearance of WPF controls
- Last UpdatedJun 25, 2024
- 1 minute read
UI Themes define the color settings that are applied to WPF controls used in ViewApps. In order to set the colors for a WPF control, the control must comply with the Material Design Spec. See the MSDN WPF Community Projects website for additional information.
The UI Theme includes the following configurable parameters:
-
Theme (light or dark): default – light
-
Background color
-
Default light background color: grey, lightest setting
-
Default dark background color: blue-grey, second darkest setting
-
-
Primary color – default teal
-
Low. This setting is only used by WPF controls that explicitly include the Primary Low property. The low setting is always darker than the mid setting. Default is the second darkest setting (second from left).
-
Mid. This setting is used by all WPF controls that use the Material Design Spec. Default is the middle setting.
-
High. This setting is only used by WPF controls that explicitly include the Primary High property. The high setting is always lighter than the mid setting. Default is the second lightest setting (second from right)
-
-
Accent color – default purple (darkest setting)