From b020bddb20bae6f4ca299cff7858ee9d60af7e95 Mon Sep 17 00:00:00 2001 From: Jumar Macato Date: Fri, 3 Aug 2018 12:47:01 +0800 Subject: [PATCH] Fix onComplete assignment. --- src/Avalonia.Animation/Animation.cs | 7 +------ src/Avalonia.Animation/AnimatorStateMachine`1.cs | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/Avalonia.Animation/Animation.cs b/src/Avalonia.Animation/Animation.cs index 46179aa3f4..344b63d15c 100644 --- a/src/Avalonia.Animation/Animation.cs +++ b/src/Avalonia.Animation/Animation.cs @@ -85,12 +85,7 @@ namespace Avalonia.Animation /// Sets the behavior for having a delay between repeats for this animation. /// public bool DelayBetweenRepeats { get; set; } - - public Animation() - { - this.CollectionChanged += delegate { _isChildrenChanged = true; }; - } - + private (IList Animators, IList subscriptions) InterpretKeyframes(Animatable control) { var handlerList = new List<(Type type, AvaloniaProperty property)>(); diff --git a/src/Avalonia.Animation/AnimatorStateMachine`1.cs b/src/Avalonia.Animation/AnimatorStateMachine`1.cs index 32acafcfc7..18ad76c51e 100644 --- a/src/Avalonia.Animation/AnimatorStateMachine`1.cs +++ b/src/Avalonia.Animation/AnimatorStateMachine`1.cs @@ -73,7 +73,7 @@ namespace Avalonia.Animation animationDirection = animation.PlaybackDirection; fillMode = animation.FillMode; - onComplete = onComplete; + this.onComplete = onComplete; } public void Step(PlayState playState, long frameTick, Func Interpolator)