ByReferenceMotionProperty<T>

A motion property that holds its value by reference: the value is not interpolated, so assigning a new value snaps to it. Used for properties where animation lives inside the value itself (for example a Paint reference, whose own properties are motion properties) rather than by blending one value instance into another. How a change of the reference behaves (snap vs. animate) is left to the owner — e.g. via the generated On…Changed hook.

Class · Namespace LiveChartsCore.Motion · Assembly LiveChartsCore · View source

Type parameters

T The property type.

Inheritance

Object MotionProperty<T> ByReferenceMotionProperty<T>

Implements

Members

Properties

FromValue T
Gets the start value of the transition.
ToValue T
Gets the end value of the transition.
IsCompleted Boolean
Gets a value indicating whether the operation has completed.
DefaultValue T
Gets the default value of the property.
Animation Animation
Gets or sets the animation.
LogGet Animatable
Gets or sets the instance that will be used to log the getter of the IMotionProperty.
LogSet Animatable
Gets or sets the instance that will be used to log the setter of the IMotionProperty.

Methods

SetMovement 2 parameters

Moves to the specified value.

T value The value to move to.

Animatable animatable The Animatable instance that is moving.

GetMovement 1 parameter

Gets the current movement in the MotionProperty.Animation.

Animatable animatable

Finish No parameters

Finishes the transition.

CopyFrom 1 parameter

Copies into this instance the source property.

IMotionProperty source The source.

Constructors

ByReferenceMotionProperty<T> 1 parameter

A motion property that holds its value by reference: the value is not interpolated, so assigning a new value snaps to it. Used for properties where animation lives inside the value itself (for example a Paint reference, whose own properties are motion properties) rather than by blending one value instance into another. How a change of the reference behaves (snap vs. animate) is left to the owner — e.g. via the generated On…Changed hook.

T defaultValue The default value.