Back to Devexpress

WindowsFormsSettings.AllowRoundedWindowCorners Property

windowsforms-devexpress-dot-xtraeditors-dot-windowsformssettings-f42971c4.md

latest2.1 KB
Original Source

WindowsFormsSettings.AllowRoundedWindowCorners Property

Specifies whether forms, dialogs, panels and tooltips have rounded corners. When this option is enabled, the form’s borders, including shadows, are drawn by the operating system. This option is only in effect in Windows 11.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
public static DefaultBoolean AllowRoundedWindowCorners { get; set; }
vb
Public Shared Property AllowRoundedWindowCorners As DefaultBoolean

Property Value

TypeDescription
DefaultBoolean

DefaultBoolean.Default or DefaultBoolean.False to display square corners; DefaultBoolean.True to display rounded corners.

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

Remarks

The figure below illustrates a form with rounded corners:

Rounded corners are not supported for controls in OS versions older than Windows 11. No error is raised if you enable the AllowRoundedWindowCorners property in these Windows OS versions.

See Also

WindowsFormsSettings Class

WindowsFormsSettings Members

DevExpress.XtraEditors Namespace