Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

RectangleGeometry.RadiusY Property

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

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)
public double RadiusY { get; set; }
<RectangleGeometry RadiusY="double"/>

Property Value

Type: System.Double
The y-radius of the ellipse used to round the corners of the rectangle geometry. The default is 0.

Dependency property identifier field: RadiusYProperty

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

A value greater than or equal to zero and less than or equal to half the rectangle's width that describes the y-radius of the ellipse is used to round the corners of the rectangle. A value greater than half the rectangle's width is treated as though equal to half the rectangle's width. A negative value is treated as a positive value.

The following illustration shows three rectangles with varying degrees of rounded corners.

Rectangles with different RadiusX/RadiusY settings

Rectangles with different RadiusX and RadiusY

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.