WindowChrome.CornerRadius Property

Definition

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

public:
 property System::Windows::CornerRadius CornerRadius { System::Windows::CornerRadius get(); void set(System::Windows::CornerRadius value); };
public System.Windows.CornerRadius CornerRadius { get; set; }
member this.CornerRadius : System.Windows.CornerRadius with get, set
Public Property CornerRadius As CornerRadius

Property Value

A value that describes the amount that corners are rounded.

Remarks

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.

Dependency Property Information

Identifier field CornerRadiusProperty
Metadata properties set to true None

Applies to