Skip to main content

CompositionLinearGradientBrush Class

Definition​

Assembly:Avalonia.Base
Package:Avalonia
public class CompositionLinearGradientBrush

Inheritance: object -> CompositionObject -> CompositionBrush -> CompositionGradientBrush -> CompositionLinearGradientBrush

Methods​

NameDescription
StartAnimationConnects an animation with the specified property of the object and starts the animation. Inherited from CompositionObject.
StartAnimationGroupStarts 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.
StopAnimationDisconnects an animation from the specified property and stops the animation. Inherited from CompositionObject.
StopAnimationGroupStops an animation group. Inherited from CompositionObject.

Properties​

NameDescription
CompositorThe associated Compositor Inherited from CompositionObject.
EndPointNo summary available.
GradientStopsThe 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. Inherited from CompositionGradientBrush.
ImplicitAnimationsThe collection of implicit animations attached to this object. Inherited from CompositionObject.
IsDisposedInherited from CompositionObject.
OpacityInherited from CompositionBrush.
RelativeTransformInherited from CompositionBrush.
SpreadMethodHow the gradient repeats outside the stop range. Inherited from CompositionGradientBrush.
StartPointNo summary available.
TransformInherited from CompositionBrush.
TransformOriginInherited from CompositionBrush.

EndPoint Property​

public Avalonia.RelativePoint EndPoint { get; set; }

StartPoint Property​

public Avalonia.RelativePoint StartPoint { get; set; }