Skip to main content
All docs
V25.1
  • ThemedWindow.UseNativeWindow Property

    Gets or sets whether the operating system’s native window is used to round a ThemedWindow instance’s corners and display its drop shadow.

    Namespace: DevExpress.Xpf.Core

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

    NuGet Package: DevExpress.Wpf.Core

    Declaration

    public static bool UseNativeWindow { get; set; }

    Property Value

    Type Description
    Boolean

    true to use the operating system’s native window; otherwise, false.

    Remarks

    DevExpress WPF Controls - UseNativeWindow

    The following code sample sets the UseNativeWindow property to true to round ThemedWindow corners and display its drop shadow:

    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

    UseNativeWindow

    RoundCorners

    true

    false

    true

    false

    Windows 11

    Win11Light/Win11Dark

    yes

    yes

    yes

    yes

    non-Win11Light/Win11Dark

    yes

    no

    yes

    no

    Windows 10 and earlier

    Win11Light/Win11Dark

    no[1]

    yes

    yes

    yes

    non-Win11Light/Win11Dark

    no

    no

    yes

    no

    Limitations

    Footnotes
    1. Your application’s appearance will be broken.

    See Also