From 8dd3315c9a96b6c9a1247fd24d63e53263719acd Mon Sep 17 00:00:00 2001 From: Jumar Macato Date: Tue, 3 Apr 2018 14:56:40 +0800 Subject: [PATCH] Split the global timer for Transitions and Animations. Added more example animations in RenderTest with Global Pause/Resume button for Animations. --- samples/RenderTest/Pages/AnimationsPage.xaml | 381 ++++++++++++++---- .../RenderTest/Pages/AnimationsPage.xaml.cs | 2 + .../ViewModels/AnimationsPageViewModel.cs | 40 ++ src/Avalonia.Animation/Animatable.cs | 9 +- src/Avalonia.Animation/Keyframes/KeyFrames.cs | 6 +- src/Avalonia.Animation/Timing.cs | 97 ++++- .../Transitions/Transition.cs | 2 +- 7 files changed, 432 insertions(+), 105 deletions(-) create mode 100644 samples/RenderTest/ViewModels/AnimationsPageViewModel.cs diff --git a/samples/RenderTest/Pages/AnimationsPage.xaml b/samples/RenderTest/Pages/AnimationsPage.xaml index f2452df03b..f03f1a0c63 100644 --- a/samples/RenderTest/Pages/AnimationsPage.xaml +++ b/samples/RenderTest/Pages/AnimationsPage.xaml @@ -1,97 +1,310 @@ - + - - - - - - - - + + + + + + + + + + + - - - - Hover to activate Transform Keyframe Animations. - - - - + + + + + Hover to activate Transform Keyframe Animations. + +