wpf-devexpress-dot-xpf-dot-core-dot-theme-dot-win10light.md
The Win10Light theme.
Namespace : DevExpress.Xpf.Core
Assembly : DevExpress.Xpf.Core.v25.2.dll
NuGet Package : DevExpress.Wpf.Core
public static Theme Win10Light
Public Shared Win10Light As Theme
| Type | Description |
|---|---|
| Theme |
The Win10Light theme (part of the Win10Category).
|
Pass a Win10Palette object as a parameter to a Theme.CreateTheme method to generate a theme based on a Win10Dark or Win10Light DevExpress theme. The palette allows you to get the following Windows theme settings, listen to their changes, and apply them to your application:
Refer to the following Microsoft help topic for more information: Change colors in Windows
The Win10Palette works with Windows 10 and higher. If the palette cannot find a Windows accent color or an app mode, the application accent color and app mode are set to #FF0078D7 and Light, respectively.
The following code sample generates a new theme (based on the Win10Light theme) with the Windows accent color and applies the theme on application startup:
protected override void OnStartup(StartupEventArgs e) {
var palette = new Win10Palette();
var theme = Theme.CreateTheme(palette, Theme.Win10Light);
Theme.RegisterTheme(theme);
ApplicationThemeHelper.ApplicationThemeName = theme.Name;
base.OnStartup(e);
}
Protected Overrides Sub OnStartup(ByVal e As StartupEventArgs)
Dim palette = New Win10Palette()
Dim theme = Theme.CreateTheme(palette, Theme.Win10Light)
Theme.RegisterTheme(theme)
ApplicationThemeHelper.ApplicationThemeName = theme.Name
MyBase.OnStartup(e)
End Sub
See Also