|
|
|
@ -104,6 +104,11 @@ namespace Avalonia.Animation.Animators |
|
|
|
throw new Exception("Index time is out of keyframe time range."); |
|
|
|
} |
|
|
|
|
|
|
|
public virtual IDisposable BindAnimation(Animatable control, IObservable<T> instance) |
|
|
|
{ |
|
|
|
return control.Bind((AvaloniaProperty<T>)Property, instance, BindingPriority.Animation); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Runs the KeyFrames Animation.
|
|
|
|
/// </summary>
|
|
|
|
@ -116,7 +121,8 @@ namespace Avalonia.Animation.Animators |
|
|
|
clock ?? control.Clock ?? Clock.GlobalClock, |
|
|
|
onComplete, |
|
|
|
InterpolationHandler); |
|
|
|
return control.Bind(Property, instance, BindingPriority.Animation); |
|
|
|
|
|
|
|
return BindAnimation(control, instance); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|