RadialGradientBrush.MappingMode Property

Definition

Gets or sets whether the gradient brush's positioning coordinates are absolute or relative to the output area.

public:
 property BrushMappingMode MappingMode { BrushMappingMode get(); void set(BrushMappingMode value); };
public:
 property BrushMappingMode MappingMode { BrushMappingMode get(); void set(BrushMappingMode value); };
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::BrushMappingMode::RelativeToBoundingBox")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::BrushMappingMode::RelativeToBoundingBox")]
BrushMappingMode MappingMode();

void MappingMode(BrushMappingMode value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::BrushMappingMode::RelativeToBoundingBox")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::BrushMappingMode::RelativeToBoundingBox")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::BrushMappingMode::RelativeToBoundingBox")]
BrushMappingMode MappingMode();

void MappingMode(BrushMappingMode value);
[get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
[get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::BrushMappingMode::RelativeToBoundingBox")]
[set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
[set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::BrushMappingMode::RelativeToBoundingBox")]
public BrushMappingMode MappingMode { get; set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::BrushMappingMode::RelativeToBoundingBox")]
[get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
[get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::BrushMappingMode::RelativeToBoundingBox")]
[set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
[set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::BrushMappingMode::RelativeToBoundingBox")]
public BrushMappingMode MappingMode { get; set; }
Public Property MappingMode As BrushMappingMode

Property Value

Windows.UI.Xaml.Media.BrushMappingMode
BrushMappingMode

Defines whether Center, RadiusX, RadiusY, and GradientOrigin represent relative coordinates in the range 0 to 1 or absolute coordinates. The default is RelativeToBoundingBox.

Attributes

Remarks

The default is RelativeToBoundingBox.

Applies to