CompositionGradientBrush Class
Definition
public class CompositionGradientBrush
Methods
| Name | Description |
|---|---|
| StartAnimation | Connects an animation with the specified property of the object and starts the animation. Inherited from CompositionObject. |
| StartAnimationGroup | Starts an animation group. The StartAnimationGroup method on CompositionObject lets you start CompositionAnimationGroup. All the animations in the group will be started at the same time on the object. Inherited from CompositionObject. |
| StopAnimation | Disconnects an animation from the specified property and stops the animation. Inherited from CompositionObject. |
| StopAnimationGroup | Stops an animation group. Inherited from CompositionObject. |
Properties
| Name | Description |
|---|---|
| Compositor | The associated Compositor Inherited from CompositionObject. |
| GradientStops | The gradient stops. Mutations of the list itself are not tracked - assign the property to ship in-place edits made after a commit. Stops created via Avalonia.Rendering.Composition.Compositor.CreateGradientStop(double,Avalonia.Media.Color) stay live on the server and animate individually; other stops are snapshotted at serialization time. |
| ImplicitAnimations | The collection of implicit animations attached to this object. Inherited from CompositionObject. |
| IsDisposed | Inherited from CompositionObject. |
| Opacity | Inherited from CompositionBrush. |
| RelativeTransform | Inherited from CompositionBrush. |
| SpreadMethod | How the gradient repeats outside the stop range. |
| Transform | Inherited from CompositionBrush. |
| TransformOrigin | Inherited from CompositionBrush. |
GradientStops Property
The gradient stops. Mutations of the list itself are not tracked - assign the property to ship in-place edits made after a commit. Stops created via Avalonia.Rendering.Composition.Compositor.CreateGradientStop(double,Avalonia.Media.Color) stay live on the server and animate individually; other stops are snapshotted at serialization time.
public System.Collections.Generic.List<Avalonia.Media.IGradientStop> GradientStops { get; set; }
SpreadMethod Property
How the gradient repeats outside the stop range.
public Avalonia.Media.GradientSpreadMethod SpreadMethod { get; set; }