RadialGradientBrush.MappingMode 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置渐变画笔的定位坐标是绝对坐标还是相对于输出区域。
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);
public BrushMappingMode MappingMode { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::BrushMappingMode::RelativeToBoundingBox")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::BrushMappingMode::RelativeToBoundingBox")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::BrushMappingMode::RelativeToBoundingBox")]
public BrushMappingMode MappingMode { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::BrushMappingMode::RelativeToBoundingBox")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::BrushMappingMode::RelativeToBoundingBox")] set; }
var brushMappingMode = radialGradientBrush.mappingMode;
radialGradientBrush.mappingMode = brushMappingMode;
Public Property MappingMode As BrushMappingMode
属性值
定义 、、 RadiusY
和 GradientOrigin
是RadiusX
Center
表示 0 到 1 范围内的相对坐标还是绝对坐标。 默认为 RelativeToBoundingBox
。
- 属性
-
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute
注解
默认为 RelativeToBoundingBox
。