Animated<T>

References
public class Animated<T>
Represents an animation over time of a specific value.
TType to animate.

Properties

Motion

#
Gets the motion type of this animator.
public Motion Motion { get; }

State

#
Gets the state of the animator. Once the state is AnimatorState.Finished, it will never change.
public State State { get; }

Time0

#
Gets the scheduled start time for this animation.
public DateTime Time0 { get; }

Time1

#
Gets the scheduled end time for this animation.
public DateTime Time1 { get; }

Value0

#
Gets the start value of this animation.
public T Value0 { get; }

Value1

#
Gets the end value of this animation.
public T Value1 { get; }

ValueNow

#
Gets the current value. The current value is only meaningful if the animator has been evaluated at least once.
public T ValueNow { get; }

Methods

Chain

#
Continue this animator by appending another one with a new target value.
public Animated<T> Chain(
T
target,
New target value.
timeStart,
Start time for animator in UTC coordinates.
timeEnd,
End time for animator in UTC coordinates.
motion
New motion type.
)
Chained animator.

Chain

#
Continue this animator by appending another one with a new target value.
public Animated<T> Chain(
T
target,
New target value.
duration,
New duration.
motion
New motion type.
)
Chained animator.

Chain

#
Continue this animator by appending another one with a new target value. Local duration is retained.
public Animated<T> Chain(
T
target,
New target value.
motion
New motion type.
)
Chained animator.

Chain

#
Continue this animator by appending another one with a new target value.
public Animated<T> Chain(
T
target,
New target value.
duration,
New duration.
motion
New motion type.
)
Chained animator.

Chain

#
Continue this animator by appending another one with a new target value. Local duration and motion properties are retained.
public Animated<T> Chain(
T
target
New target value.
)
Chained animator.

CreateFinished

#
Create a new constant animation.
public static Animated<T> CreateFinished(
T
value,
Constant value.
interpolator
Interpolator.
)
Animation.

CreateFinished

#
Create a new constant animation.
public static Animated<T> CreateFinished(
T
value,
Constant value.
duration,
Duration associated with this animation. The duration only becomes relevant when this animator is chained.
motion,
Motion associated with this animation. The motion only becomes relevant when this animator is chained.
interpolator
Interpolator.
)

CreateUnfinished

#
Create a new constant animation.
public static Animated<T> CreateUnfinished(
T
value0,
Initial value.
T
value1,
Final value.
time0,
Start time for animation.
time1,
End time for animation, may not be earlier than the start time.
motion,
Motion associated with this animation.
interpolator
Interpolator.
)

CreateUnfinished

#
Create a new progressive animation, starting now.
public static Animated<T> CreateUnfinished(
T
value0,
Initial value.
T
value1,
Final value.
duration,
Duration of animation.
motion,
Motion associated with this animator.
interpolator
Interpolator.
)
Animation.

Evaluate

#
Evaluate the animation.

This method should be called by graphics context, you typically never call it yourself.

public T Evaluate(
time
Time to evaluate at.
)
Remarks: This method should only be called from the Graphics context.
Evaluated value.

ToString

#
Gets a string description for this animated value.
public override string ToString()
Object.ToString

Operators

OperationResultDescription
Animated<T>+(T value, Motion motion, Duration duration)Animated<T>Chain an animator.
Animated<T>+TAnimated<T>Chain an animator.

Convertors

OperationResultDescription
implicitTAnimated<T>Default conversion from value to animated state.
implicitAnimated<T>TDefault conversion from animator to animating value.