Class LayerPropertyKeyframe<T>
Represents a keyframe on a LayerProperty<T> containing a value and a timestamp
public class LayerPropertyKeyframe<T> : CorePropertyChanged, ILayerPropertyKeyframe
Type Parameters
T
- Represents a keyframe on a containing a value and a timestamp
- Inheritance
-
LayerPropertyKeyframe<T>
- Implements
Constructors
LayerPropertyKeyframe(T, TimeSpan, Functions, LayerProperty<T>)
Creates a new instance of the LayerPropertyKeyframe<T> class
public LayerPropertyKeyframe(T value, TimeSpan position, Easings.Functions easingFunction, LayerProperty<T> layerProperty)
Parameters
value
TThe value of the keyframe
position
TimeSpanThe position of this keyframe in the timeline
easingFunction
Easings.FunctionsThe easing function applied on the value of the keyframe
layerProperty
LayerProperty<T>The layer property this keyframe is applied to
Properties
EasingFunction
Gets or sets the easing function applied on the value of the keyframe
public Easings.Functions EasingFunction { get; set; }
Property Value
LayerProperty
The layer property this keyframe is applied to
public LayerProperty<T> LayerProperty { get; }
Property Value
Position
Gets or sets the position of this keyframe in the timeline
public TimeSpan Position { get; set; }
Property Value
UntypedLayerProperty
Gets an untyped reference to the layer property of this keyframe
public ILayerProperty UntypedLayerProperty { get; }
Property Value
Value
The value of this keyframe
public T Value { get; set; }
Property Value
- T
Methods
CreateCopy()
Creates a copy of this keyframe.
Note: The copied keyframe is not added to the layer property.
public ILayerPropertyKeyframe CreateCopy()
Returns
- ILayerPropertyKeyframe
The resulting copy
GetKeyframeEntity()
Gets the entity this keyframe uses for persistent storage
public KeyframeEntity GetKeyframeEntity()
Returns
- KeyframeEntity
Remove()
Removes the keyframe from the layer property
public void Remove()