Skip to main content
All docs
V25.2
  • ThemedWindow.RoundCorners Property

    Gets or sets whether ThemedWindow instances and descendants in your application have rounded corners.

    Namespace: DevExpress.Xpf.Core

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

    Declaration

    public static bool RoundCorners { get; set; }

    Property Value

    Type Description
    Boolean

    true to round ThemedWindow corners; otherwise false.

    Remarks

    The picture below illustrates a window with rounded corners:

    WPF Controls - ThemedWindow | Rounded Corners

    The following code snippet rounds ThemedWindow corners:

    using DevExpress.Xpf.Core;
    //...
    
    public partial class App {
        protected override void OnStartup(StartupEventArgs e) {
            base.OnStartup(e);
            ThemedWindow.RoundCorners = true;  
        }
    }
    

    Use RoundCorners and ThemedWindow.UseNativeWindow properties to specify whether the corners of your application windows are rounded.

    Note

    The Windows version lower then 10 may display rounded corners incorrectly.

    The following table describes whether your application’s corners are rounded depending on your Windows version, applied DevExpress Theme, and 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

    Limitation

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

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

    See Also