WindowChrome.CornerRadius Property

.NET Framework 4.5

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)
XMLNS for XAML: Not mapped to an xmlns.

public CornerRadius CornerRadius { get; set; }
    <CornerRadius .../>
<object CornerRadius="CornerRadius" .../>

Property Value

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

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

Supported in: 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft