WindowChrome.CornerRadius Property

Gets or sets a value that indicates the amount that the corners of a window are rounded.

Namespace:  Microsoft.Windows.Shell
Assembly:  Microsoft.Windows.Shell (in Microsoft.Windows.Shell.dll)


Public Property CornerRadius As CornerRadius
public CornerRadius CornerRadius { get; set; }
property CornerRadius CornerRadius {
    CornerRadius get ();
    void set (CornerRadius value);
member CornerRadius : CornerRadius with get, set
function get CornerRadius () : CornerRadius
function set CornerRadius (value : CornerRadius)

Property Value

Type: System.Windows.CornerRadius
A value that describes the amount that corners are rounded.

Dependency Property Information

Identifier field


Metadata properties set to true



Set the CornerRadius property to specify the amount of rounding at the corners of a window. This property can be set to any non-negative double value. The values can be non-uniform.

This property does not affect maximized windows or windows that have a Windows Aero glass frame. It only has an effect when Windows Aero (also called Desktop Window Manager) is not enabled or the GlassFrameThickness property is set to 0. Hit testing in the non-client area does not take the CornerRadius into account when determining whether the mouse is over a resize border. If the radius is too large relative to the ResizeBorderThickness then it is possible that the user cannot perform a diagonal resize using the mouse.

.NET Framework Security

See Also


WindowChrome Class

Microsoft.Windows.Shell Namespace