WindowChrome.CornerRadius Property

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

Namespace:   System.Windows.Shell
Assembly:  PresentationFramework (in PresentationFramework.dll)

public CornerRadius CornerRadius { get; set; }

Property Value

Type: System.Windows.CornerRadius

A value that describes the amount that corners are rounded.

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.

Identifier field


Metadata properties set to true


.NET Framework
Available since 4.5
Return to top