From ad838af44470092b2e46cee66a6905ff901039b8 Mon Sep 17 00:00:00 2001 From: Luke Padiachy <148848073+lukepadiachy@users.noreply.github.com> Date: Sat, 15 Feb 2025 22:05:00 +0200 Subject: [PATCH 1/2] Refactor layouts and add new animations Refactored multiple XAML pages to use Grid layout instead of ScrollView and VerticalStackLayout. Reorganized Image and Button elements, added new buttons for additional animations, and included a Border element with instructional Labels. Updated corresponding code-behind files to add new animation methods and modify existing ones to update TooltipLabel text. Updated Animations.csproj to change BaseSize of dotnet_bot.png. Modified dotnet_bot.png file. Expanded README.md with detailed descriptions of sample animations, easing functions, and custom animations. --- 9.0/Animations/Animations/Animations.csproj | 2 +- .../Animations/Pages/CustomAnimationPage.xaml | 83 +++++++++++----- .../Pages/CustomAnimationPage.xaml.cs | 75 +++++++++++++-- 9.0/Animations/Animations/Pages/FadePage.xaml | 89 +++++++++++++----- .../Animations/Pages/FadePage.xaml.cs | 70 +++++++++++++- .../Animations/Pages/RotatePage.xaml | 80 +++++++++++----- .../Animations/Pages/RotatePage.xaml.cs | 61 +++++++++++- .../Animations/Pages/ScalePage.xaml | 85 ++++++++++++----- .../Animations/Pages/ScalePage.xaml.cs | 45 ++++++++- .../Animations/Pages/TranslatePage.xaml | 83 +++++++++++----- .../Animations/Pages/TranslatePage.xaml.cs | 89 +++++++++++++++--- .../Resources/Images/dotnet_bot.png | Bin 93437 -> 601162 bytes 9.0/Animations/README.md | 28 ++++++ 13 files changed, 647 insertions(+), 143 deletions(-) diff --git a/9.0/Animations/Animations/Animations.csproj b/9.0/Animations/Animations/Animations.csproj index 71de3a495..3e73fc53a 100644 --- a/9.0/Animations/Animations/Animations.csproj +++ b/9.0/Animations/Animations/Animations.csproj @@ -49,7 +49,7 @@ - + diff --git a/9.0/Animations/Animations/Pages/CustomAnimationPage.xaml b/9.0/Animations/Animations/Pages/CustomAnimationPage.xaml index 66db264ba..c0d1018e0 100644 --- a/9.0/Animations/Animations/Pages/CustomAnimationPage.xaml +++ b/9.0/Animations/Animations/Pages/CustomAnimationPage.xaml @@ -3,27 +3,68 @@ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="Animations.CustomAnimationPage" Title="Custom Extension"> - - - + - - -