From d6deda6414a011b01959db71dcfe04728b69c167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wies=C5=82aw=20=C5=A0olt=C3=A9s?= Date: Mon, 19 Sep 2022 20:31:53 +0200 Subject: [PATCH] Add spring animation demo page --- samples/RenderDemo/MainWindow.xaml | 3 ++ .../Pages/SpringAnimationsPage.xaml | 35 +++++++++++++++++++ .../Pages/SpringAnimationsPage.xaml.cs | 17 +++++++++ 3 files changed, 55 insertions(+) create mode 100644 samples/RenderDemo/Pages/SpringAnimationsPage.xaml create mode 100644 samples/RenderDemo/Pages/SpringAnimationsPage.xaml.cs diff --git a/samples/RenderDemo/MainWindow.xaml b/samples/RenderDemo/MainWindow.xaml index e6e62f86ed..823a0fbbef 100644 --- a/samples/RenderDemo/MainWindow.xaml +++ b/samples/RenderDemo/MainWindow.xaml @@ -39,6 +39,9 @@ + + + diff --git a/samples/RenderDemo/Pages/SpringAnimationsPage.xaml b/samples/RenderDemo/Pages/SpringAnimationsPage.xaml new file mode 100644 index 0000000000..26d572bb3f --- /dev/null +++ b/samples/RenderDemo/Pages/SpringAnimationsPage.xaml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + diff --git a/samples/RenderDemo/Pages/SpringAnimationsPage.xaml.cs b/samples/RenderDemo/Pages/SpringAnimationsPage.xaml.cs new file mode 100644 index 0000000000..78d3df2233 --- /dev/null +++ b/samples/RenderDemo/Pages/SpringAnimationsPage.xaml.cs @@ -0,0 +1,17 @@ +using Avalonia.Controls; +using Avalonia.Markup.Xaml; + +namespace RenderDemo.Pages; + +public class SpringAnimationsPage : UserControl +{ + public SpringAnimationsPage() + { + InitializeComponent(); + } + + private void InitializeComponent() + { + AvaloniaXamlLoader.Load(this); + } +}