-api-id | -api-type |
---|---|
P:Microsoft.UI.Xaml.Media.RadialGradientBrush.SpreadMethod |
winrt property |
Gets or sets the type of spread method that specifies how to draw a gradient that starts or ends inside the bounds of the object to be painted.
This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).
The type of spread method that specifies how to draw a gradient that starts or ends inside the bounds of the object to be painted. The default is Pad
The following illustration shows the available spread methods and their effect on LinearGradientBrush and RadialGradientBrush. The default is Pad
.
:::image type="content" source="images/GradientSpread.png" alt-text="Pad, Reflect, and Repeat demonstrated as different GradientSpread settings.":::