From 099ab32cd92b9e6ce9378d12e7fbacdbf98a29e7 Mon Sep 17 00:00:00 2001 From: Jumar Macato <16554748+jmacato@users.noreply.github.com> Date: Mon, 17 May 2021 07:34:05 +0800 Subject: [PATCH] Merge pull request #5929 from AvaloniaUI/new-transitions Reuse animators in Transitions code + add missing BoxShadowsTransition + fix NRE in ISolidColorBrushAnimator --- samples/RenderDemo/Pages/AnimationsPage.xaml | 7 +- samples/RenderDemo/Pages/TransitionsPage.xaml | 65 +++++++++++++++++-- .../Transitions/DoubleTransition.cs | 10 +-- .../Transitions/FloatTransition.cs | 7 +- .../Transitions/IntegerTransition.cs | 7 +- .../Animators/SolidColorBrushAnimator.cs | 10 +++ .../Transitions/BoxShadowsTransition.cs | 23 +++++++ .../Transitions/CornerRadiusTransition.cs | 21 ++---- .../Animation/Transitions/PointTransition.cs | 10 +-- .../Animation/Transitions/SizeTransition.cs | 10 +-- .../Transitions/ThicknessTransition.cs | 10 +-- .../Animation/Transitions/VectorTransition.cs | 10 +-- 12 files changed, 138 insertions(+), 52 deletions(-) create mode 100644 src/Avalonia.Visuals/Animation/Transitions/BoxShadowsTransition.cs diff --git a/samples/RenderDemo/Pages/AnimationsPage.xaml b/samples/RenderDemo/Pages/AnimationsPage.xaml index 12fb31ea59..21c7d68b5d 100644 --- a/samples/RenderDemo/Pages/AnimationsPage.xaml +++ b/samples/RenderDemo/Pages/AnimationsPage.xaml @@ -1,7 +1,8 @@ + x:Class="RenderDemo.Pages.AnimationsPage" + MaxWidth="600"> @@ -167,8 +168,8 @@ - - Hover to activate Transform Keyframe Animations. + + Hover to activate Keyframe Animations.