From 5cfc2be3dbcc181b1a080387be1b3330243b08c0 Mon Sep 17 00:00:00 2001 From: kriastans Date: Sun, 19 May 2024 14:13:57 +0800 Subject: [PATCH] [update] updated. --- Ink Canvas/Helpers/AnimationsHelper.cs | 7 + Ink Canvas/MainWindow.xaml | 1449 ++++++++--------- Ink Canvas/MainWindow.xaml.cs | 3 +- Ink Canvas/MainWindow_cs/MW_AutoFold.cs | 10 +- Ink Canvas/MainWindow_cs/MW_Colors.cs | 2 + .../MainWindow_cs/MW_FloatingBarIcons.cs | 55 +- Ink Canvas/MainWindow_cs/MW_Timer.cs | 6 +- Ink Canvas/MainWindow_cs/MW_TouchEvents.cs | 154 +- 8 files changed, 898 insertions(+), 788 deletions(-) diff --git a/Ink Canvas/Helpers/AnimationsHelper.cs b/Ink Canvas/Helpers/AnimationsHelper.cs index 0f247f8..9892907 100644 --- a/Ink Canvas/Helpers/AnimationsHelper.cs +++ b/Ink Canvas/Helpers/AnimationsHelper.cs @@ -50,6 +50,8 @@ namespace Ink_Canvas.Helpers To = 1, Duration = TimeSpan.FromSeconds(duration) }; + fadeInAnimation.EasingFunction = new CubicEase(); + Storyboard.SetTargetProperty(fadeInAnimation, new PropertyPath(UIElement.OpacityProperty)); // 滑动动画 @@ -61,6 +63,8 @@ namespace Ink_Canvas.Helpers }; Storyboard.SetTargetProperty(slideAnimation, new PropertyPath("(UIElement.RenderTransform).(TranslateTransform.Y)")); + slideAnimation.EasingFunction = new CubicEase(); + sb.Children.Add(fadeInAnimation); sb.Children.Add(slideAnimation); @@ -212,6 +216,7 @@ namespace Ink_Canvas.Helpers To = 0, Duration = TimeSpan.FromSeconds(duration) }; + fadeOutAnimation.EasingFunction = new CubicEase(); Storyboard.SetTargetProperty(fadeOutAnimation, new PropertyPath(UIElement.OpacityProperty)); // 滑动动画 @@ -221,6 +226,8 @@ namespace Ink_Canvas.Helpers To = element.RenderTransform.Value.OffsetY + 10, // 滑动距离 Duration = TimeSpan.FromSeconds(duration) }; + slideAnimation.EasingFunction = new CubicEase(); + Storyboard.SetTargetProperty(slideAnimation, new PropertyPath("(UIElement.RenderTransform).(TranslateTransform.Y)")); sb.Children.Add(fadeOutAnimation); diff --git a/Ink Canvas/MainWindow.xaml b/Ink Canvas/MainWindow.xaml index 4d23bfd..7340800 100644 --- a/Ink Canvas/MainWindow.xaml +++ b/Ink Canvas/MainWindow.xaml @@ -89,13 +89,726 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 墨迹、截图自动保存位置: + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 墨迹、截图自动保存位置: - - -