wpf-devexpress-dot-xpf-dot-core-dot-theme-dot-win11dark.md
The Win11Dark theme.
Namespace : DevExpress.Xpf.Core
Assembly : DevExpress.Xpf.Core.v25.2.dll
NuGet Package : DevExpress.Wpf.Core
public static Theme Win11Dark
Public Shared Win11Dark As Theme
| Type | Description |
|---|---|
| Theme |
The Win11Dark theme (part of the Win11Category).
|
You can use the RoundCorners and ThemedWindow.UseNativeWindow properties to specify whether corners of your application’s windows are rounded.
The following table describes whether your application’s corners are rounded depending on your Windows version, applied DevExpress Theme, and the UseNativeWindow and RoundCorners property values:
|
Windows Version
|
Applied DevExpress Theme
|
|
| | --- | --- | --- | --- | |
true
|
false
|
true
|
false
| | --- | --- | --- | --- | |
Windows 11
|
Win11Light/Win11Dark
|
|
|
|
| |
non-Win11Light/Win11Dark
|
|
|
|
| |
Windows 10 and earlier
|
Win11Light/Win11Dark
|
|
|
|
| |
non-Win11Light/Win11Dark
|
|
|
|
|
The following code sample rounds ThemedWindow corners:
using DevExpress.Xpf.Core;
//...
public partial class App {
protected override void OnStartup(StartupEventArgs e) {
base.OnStartup(e);
ThemedWindow.RoundCorners = true;
}
}
Imports DevExpress.Xpf.Core
Public Partial Class App
Protected Overrides Sub OnStartup(ByVal e As StartupEventArgs)
MyBase.OnStartup(e)
ThemedWindow.RoundCorners = True
End Sub
End Class
The RoundCorners property has no effect when the EnableAcrylic property is true.
Footnotes
See Also