RadiusX Property (RadialGradientBrush)
Gets or sets the horizontal radius of the outermost circle of the radial gradient.
<object RadiusX="Double" .../>
value = object.RadiusX
object.RadiusX = value
The horizontal radius of the outermost circle of the radial gradient.
This property is read/write. The default value is 0.5.
The MappingMode property of a RadialGradientBrush determines whether its properties are interpreted as a relative or absolute value. By default, RadiusX is treated as relative, which corresponds to a MappingMode of RelativeToBoundingBox. In this case, the default value of 0.5, combined with the default Center value of 0.5,0.5, makes the circle be as wide as the area where the brush is applied, centered exactly on the middle of that area. A MappingMode of Absolute specifies that the RadiusX value is expressed in device independent pixels, not as a factor within the bounding box of the area where the brush is applied.