Udostępnij za pośrednictwem


MappingMode (RadialGradientBrush)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets value that specifies whether the RadialGradientBrush positioning coordinates are absolute or relative to the output area.

<object MappingMode="BrushMappingMode"  .../>
value = object.MappingMode
object.MappingMode = value

Property Value

Type: BrushMappingMode

A value of the enumeration that specifies how the RadialGradientBrush positioning coordinates are interpreted.

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

Managed Equivalent

MappingMode

Remarks

A value of Absolute indicates that the RadialGradientBrush coordinates are expressed in pixels.

The MappingMode of a LinearGradientBrush or RadialGradientBrush does not influence how the Offset values are interpreted. Regardless of mapping mode, the offset is always interpreted as a factor between 0 and 1 along the vector that defines the gradient.

Applies To

RadialGradientBrush

See Also

Reference