This topic has not yet been rated - Rate this topic

RadialGradientBrush.RadiusX Property

May 02, 2013

Gets or sets the horizontal radius of the outer circle of the radial gradient.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
public double RadiusX { get; set; }
<RadialGradientBrush RadiusX="double"/>

Property Value

Type: System.Double
The horizontal radius of the outermost circle of the radial gradient. The default value is 0.5.

Dependency property identifier field: RadiusXProperty

When the mapping mode is RelativeToBoundingBox (the default), RadiusX and RadiusY are "logical vectors", where values between 0 and 1 are mapped against the total size of the eventual bounding box where the brush is applied. The 0.5 default values for RadiusX and RadiusY create a circle that reaches the edge of the bounding box under this mapping mode. If the mapping mode is Absolute, then RadiusX and RadiusY should be given as a double value in the coordinate system.

Windows Phone OS

Supported in: 8.0, 7.1, 7.0

Windows Phone

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.