From 272eee51a00150655c6826772700c3fecf13ae78 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 12 Oct 2021 13:05:12 +0200 Subject: [PATCH] Fixed incorrect default easing for XAML animation types --- .../Xaml/Abstract/Animation{TValue,TKeyFrame}.cs | 2 +- .../Xaml/Abstract/ImplicitAnimation{TValue,TKeyFrame}.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Microsoft.Toolkit.Uwp.UI.Animations/Xaml/Abstract/Animation{TValue,TKeyFrame}.cs b/Microsoft.Toolkit.Uwp.UI.Animations/Xaml/Abstract/Animation{TValue,TKeyFrame}.cs index e432dcd4cf0..c3297369c81 100644 --- a/Microsoft.Toolkit.Uwp.UI.Animations/Xaml/Abstract/Animation{TValue,TKeyFrame}.cs +++ b/Microsoft.Toolkit.Uwp.UI.Animations/Xaml/Abstract/Animation{TValue,TKeyFrame}.cs @@ -142,7 +142,7 @@ protected INormalizedKeyFrameAnimationBuilder AppendToBuilder(INormal if (from is not null) { - builder.KeyFrame(0.0, from.Value, default, default); + builder.KeyFrame(0.0, from.Value); } return builder; diff --git a/Microsoft.Toolkit.Uwp.UI.Animations/Xaml/Abstract/ImplicitAnimation{TValue,TKeyFrame}.cs b/Microsoft.Toolkit.Uwp.UI.Animations/Xaml/Abstract/ImplicitAnimation{TValue,TKeyFrame}.cs index a98c17c4c66..96cef33e342 100644 --- a/Microsoft.Toolkit.Uwp.UI.Animations/Xaml/Abstract/ImplicitAnimation{TValue,TKeyFrame}.cs +++ b/Microsoft.Toolkit.Uwp.UI.Animations/Xaml/Abstract/ImplicitAnimation{TValue,TKeyFrame}.cs @@ -74,7 +74,7 @@ public CompositionAnimation GetAnimation(UIElement element, out string? target) if (from is not null) { - builder.KeyFrame(0.0, from.Value, default, default); + builder.KeyFrame(0.0, from.Value, DefaultEasingType, DefaultEasingMode); } foreach (var keyFrame in KeyFrames)