Skip to main content
A newer version of this page is available. .
All docs
V21.2

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.v21.2.dll

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

Declaration

public static DefaultBoolean AllowRoundedWindowCorners { get; set; }

Property Value

Type Description
DefaultBoolean

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

Available values:

Name Description
True

true. DefaultBoolean.True has a constant value of 0, while the standard true value corresponds to a value of 1. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

False

false. DefaultBoolean.False has a constant value of 1, while the standard false value corresponds to a value of 0. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

Default

The default behavior determined by the control’s logic.

Remarks

The figure below illustrates a form with rounded corners:

rounded window corners in Windows 11

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