ThemedWindow.UseNativeWindow Property
Gets or sets whether the operating system’s native window is used to round a ThemedWindow instance’s corners.
Namespace: DevExpress.Xpf.Core
Assembly: DevExpress.Xpf.Core.v25.2.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
Property Value
| Type | Description |
|---|---|
| Boolean |
|
Remarks
The following code sample sets the UseNativeWindow property to true to round ThemedWindow corners:
using DevExpress.Xpf.Core;
//...
public partial class App {
protected override void OnStartup(StartupEventArgs e) {
base.OnStartup(e);
ThemedWindow.UseNativeWindow = true;
}
}
DevExpress WPF Controls include the UseNativeWindow and ThemedWindow.RoundCorners properties that allow you to round window corners and replicate the Windows 11 application appearance.
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 |
| |||
|---|---|---|---|---|---|
|
|
|
| ||
Windows 11 |
|
|
|
| |
non-Win11Light/Win11Dark |
|
|
|
| |
Windows 10 and earlier |
|
|
| ||
non-Win11Light/Win11Dark |
|
|
|
| |
Limitations
If the
UseNativeWindowand ThemedWindow.EnableAcrylic property values aretrue, your application’s appearance will be broken.If the
UseNativeWindowproperty’s value istrue, the ThemedWindow.UseGlowColors property has no effect.

