Condividi tramite


MappingMode (LinearGradientBrush)

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

Gets or sets a value that specifies whether the LinearGradientBrush 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 LinearGradientBrush 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 LinearGradientBrush 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

LinearGradientBrush