Border.CornerRadius property

Applies to Windows and Windows Phone

Gets or sets the radius for the corners of the border.

Syntax


public CornerRadius CornerRadius { get; set; }


<Border CornerRadius="uniformRadius"/>
- or -
<Border CornerRadius="topLeft,topRight,bottomRight,bottomLeft"/>


XAML Values

uniformRadius

A value that specifies a uniform radius size in pixels. The uniformRadius value is applied to all four CornerRadius values.

topLeft

Sets the initial TopLeft value.

topRight

Sets the initial TopRight value.

bottomRight

Sets the initial BottomRight value.

bottomLeft

Sets the initial BottomLeft value.

  • If you specify an attribute string with two or three values, only the first value is respected and is treated as the uniformRadius (the other values are ignored). You must specify all four values to use a different behavior than uniformRadius.

  • In the XAML syntaxes shown, you can use a space rather than a comma as the delimiter between values.

Property value

Type: CornerRadius

The degree to which the corners are rounded, expressed as values of the CornerRadius structure.

Remarks

Member components of a CornerRadius value cannot be negative.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

Border

 

 

Show:
© 2014 Microsoft. All rights reserved.