MotionCanvas<TDrawingContext>
Class

Assembly LiveChartsCore
Namespace LiveChartsCore.Motion

Summary:
Defines a canvas that is able to animate the shapes inside it.

Type parameters:
TDrawingContext The type of the drawing context.
Inheritance:
Object =>
MotionCanvas<TDrawingContext>

Constructors

// Initializes a new instance of the MotionCanvas`1 class.

Properties

Returns true if the visual is valid.
Type: Boolean
Gets the synchronize object.
Type: Object
Gets the animatables collection.
Type: HashSet<IAnimatable>
Gets the drawables count.
Type: Int32

Events

Occurs when the visual is invalidated.
Handler definition: Action<MotionCanvas<TDrawingContext>>
Occurs when all the visuals in the canvas are valid.
Handler definition: Action<MotionCanvas<TDrawingContext>>

Methods

// Draws the frame.
TDrawingContext context// The context.
)
// Invalidates this instance.
// Adds a drawable task.
IPaint<TDrawingContext> task// The task.
)
// Sets the paint tasks.
HashSet<IPaint<TDrawingContext>> tasks// The tasks.
)
// Removes the paint task.
IPaint<TDrawingContext> task// The task.
)
// Clears the canvas and tasks.
// Counts the geometries.
// Releases the resources.