RadiusX Property (Rectangle)

Gets or sets the x-axis radius of the ellipse that is used to round the corners of the rectangle.

XAML
<object RadiusX="Double" .../>
Scripting
value = object.RadiusX
object.RadiusX = value

Property Value

Double

The x-axis radius of the ellipse that is used to round the corners of the rectangle.

This property is read/write. The default value is 0.

Remarks

For the rectangle to have rounded corners, both the RadiusX and RadiusY properties must be non-zero.

A value greater than or equal to zero and less than or equal to half the rectangle's width that describes the x-radius of the ellipse is used to round the corners of the rectangle. Values greater than half the rectangle's width are treated as though equal to half the rectangle's width. Negative values are treated as positive values.

Applies To

Rectangle

See Also

Shapes and Drawing in Silverlight Overview
Width
Height