From dfa8e70c42a21e76329493c5d9285f5bc65787b8 Mon Sep 17 00:00:00 2001
From: NaBian <836904362@qq.com>
Date: Sun, 18 Dec 2022 14:56:33 +0800
Subject: [PATCH] chore: optimize demo.
---
.../HandyControlDemo_Shared/Properties/Langs/Lang.es.resx | 4 ++--
.../UserControl/Main/LeftMainContent.xaml | 2 +-
.../UserControl/Main/MainWindowContent.xaml.cs | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/Shared/HandyControlDemo_Shared/Properties/Langs/Lang.es.resx b/src/Shared/HandyControlDemo_Shared/Properties/Langs/Lang.es.resx
index 3cd24cb5..8184169f 100644
--- a/src/Shared/HandyControlDemo_Shared/Properties/Langs/Lang.es.resx
+++ b/src/Shared/HandyControlDemo_Shared/Properties/Langs/Lang.es.resx
@@ -457,7 +457,7 @@
CoverFlow
- Buscar
+ Buscar
Abrir ventana arrastrable sin bordes
@@ -804,4 +804,4 @@
Watermark
-
\ No newline at end of file
+
diff --git a/src/Shared/HandyControlDemo_Shared/UserControl/Main/LeftMainContent.xaml b/src/Shared/HandyControlDemo_Shared/UserControl/Main/LeftMainContent.xaml
index 9a0bde7e..f33036c4 100644
--- a/src/Shared/HandyControlDemo_Shared/UserControl/Main/LeftMainContent.xaml
+++ b/src/Shared/HandyControlDemo_Shared/UserControl/Main/LeftMainContent.xaml
@@ -28,7 +28,7 @@
-
+
diff --git a/src/Shared/HandyControlDemo_Shared/UserControl/Main/MainWindowContent.xaml.cs b/src/Shared/HandyControlDemo_Shared/UserControl/Main/MainWindowContent.xaml.cs
index f71d6f11..3ea5647e 100644
--- a/src/Shared/HandyControlDemo_Shared/UserControl/Main/MainWindowContent.xaml.cs
+++ b/src/Shared/HandyControlDemo_Shared/UserControl/Main/MainWindowContent.xaml.cs
@@ -22,7 +22,7 @@ public partial class MainWindowContent
ButtonShiftOut.Collapse();
GridSplitter.IsEnabled = false;
- double targetValue = -ColumnDefinitionLeft.Width.Value;
+ double targetValue = -ColumnDefinitionLeft.MaxWidth;
_columnDefinitionWidth = ColumnDefinitionLeft.Width;
DoubleAnimation animation = AnimationHelper.CreateAnimation(targetValue, milliseconds: 100);