Class Timeline<T>
- Namespace
- Forma.Xaml
- Assembly
- Forma.dll
public abstract class Timeline<T> : IStoryboardTimeline
Type Parameters
T
- Inheritance
-
Timeline<T>
- Implements
-
- Derived
-
- Inherited Members
-
Constructors
protected Timeline(string targetName, XamlProperty<T> property)
Parameters
targetName string
property XamlProperty<T>
Properties
public TimeSpan Duration { get; }
Property Value
- TimeSpan
public IList<KeyFrame<T>> KeyFrames { get; }
Property Value
- IList<KeyFrame<T>>
public XamlProperty<T> Property { get; }
Property Value
- XamlProperty<T>
public string TargetName { get; }
Property Value
- string
Methods
public IActiveTimeline Activate(NameScope scope)
Parameters
scope NameScope
Returns
- IActiveTimeline
public void AddKeyFrame(KeyFrame<T> keyFrame)
Parameters
keyFrame KeyFrame<T>
protected abstract T Interpolate(T from, T to, float progress)
Parameters
from T
to T
progress float
Returns
- T