Back to Devexpress

Theme.Win11Light Field

wpf-devexpress-dot-xpf-dot-core-dot-theme-dot-win11light.md

latest3.5 KB
Original Source

Theme.Win11Light Field

The Win11Light theme.

Namespace : DevExpress.Xpf.Core

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public static Theme Win11Light
vb
Public Shared Win11Light As Theme

Field Value

TypeDescription
Theme

The Win11Light theme (part of the Win11Category).

|

Remarks

Round Window Corners

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

|

UseNativeWindow

|

RoundCorners

| | --- | --- | --- | --- | |

true

|

false

|

true

|

false

| | --- | --- | --- | --- | |

Windows 11

|

Win11Light/Win11Dark

|

|

|

|

| |

non-Win11Light/Win11Dark

|

|

|

|

| |

Windows 10 and earlier

|

Win11Light/Win11Dark

|

[1]

|

|

|

| |

non-Win11Light/Win11Dark

|

|

|

|

|

The following code sample rounds ThemedWindow corners:

csharp
using DevExpress.Xpf.Core;
//...

public partial class App {
    protected override void OnStartup(StartupEventArgs e) {
        base.OnStartup(e);
        ThemedWindow.RoundCorners = true;  
    }
}
vb
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

Limitation

The RoundCorners property has no effect when the EnableAcrylic property is true.

Footnotes

  1. Your application’s appearance will be broken.

See Also

Theme Class

Theme Members

DevExpress.Xpf.Core Namespace