RadialGradientBrush Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Please migrate to the RadialGradientBrush control from WinUI, this control will be removed in a future release. https://aka.ms/winui
RadialGradientBrush - This GradientBrush defines its Gradient as an interpolation within an Ellipse.
[Microsoft.UI.Xaml.Markup.ContentProperty(Name="GradientStops")]
[System.Obsolete("Please migrate to the RadialGradientBrush control from WinUI, this control will be removed in a future release. https://aka.ms/winui")]
public class RadialGradientBrush : CommunityToolkit.WinUI.UI.Media.CanvasBrushBase
[<Microsoft.UI.Xaml.Markup.ContentProperty(Name="GradientStops")>]
[<System.Obsolete("Please migrate to the RadialGradientBrush control from WinUI, this control will be removed in a future release. https://aka.ms/winui")>]
type RadialGradientBrush = class
inherit CanvasBrushBase
Public Class RadialGradientBrush
Inherits CanvasBrushBase
- Inheritance
- Attributes
-
Microsoft.UI.Xaml.Markup.ContentPropertyAttribute Obsolete
Attribute
Radial |
Initializes a new instance of the RadialGradientBrush class. |
Radial |
Initializes a new instance of the RadialGradientBrush class with two colors specified for GradientStops at offsets 0.0 and 1.0. |
Radial |
Initializes a new instance of the RadialGradientBrush class with GradientStops set to the passed-in collection. |
Alpha |
Identifies the AlphaMode dependency property. |
Center |
Identifies the Center dependency property. |
Color |
Identifies the ColorInterpolationMode dependency property. |
Gradient |
Identifies the GradientOrigin dependency property. |
Gradient |
Identifies the GradientStops dependency property. |
Radius |
Identifies the RadiusX dependency property. |
Radius |
Identifies the RadiusX dependency property. |
Spread |
Identifies the SpreadMethod dependency property. |
Alpha |
Gets or sets a AlphaMode enumeration that specifies the way in which an alpha channel affects color channels. The default is Straight for compatibility with WPF. |
Center |
Gets or sets the center of the outermost circle of the radial gradient. The default is 0.5,0.5. |
Color |
Gets or sets a ColorInterpolationMode enumeration that specifies how the gradient's colors are interpolated. The default is Microsoft.UI.Xaml.Media.ColorInterpolationMode.SRgbLinearInterpolation. |
Gradient |
Gets or sets the location of the two-dimensional focal point that defines the beginning of the gradient. The default is 0.5,0.5. |
Gradient |
Gets or sets the brush's gradient stops. |
RadiusX |
Gets or sets the horizontal radius of the outermost circle of the radial gradient. The default is 0.5. |
RadiusY |
Gets or sets the vertical radius of the outermost circle of the radial gradient. The default is 0.5. |
Spread |
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. |
Surface |
Gets or sets the internal surface render height. Modify during construction. (Inherited from CanvasBrushBase) |
Surface |
Gets or sets the internal surface render width. Modify during construction. (Inherited from CanvasBrushBase) |
On |
Initializes the Composition Brush. (Inherited from CanvasBrushBase) |
On |
Deconstructs the Composition Brush. (Inherited from CanvasBrushBase) |
On |
Implemented by parent class and called when canvas is being constructed for brush. |
Produit | Versions (Obsolète) |
---|---|
Windows Community Toolkit | (7.0.0) |