From c0102e7582a014915e37d78100e7820691e79a0e Mon Sep 17 00:00:00 2001
From: NaBian <836904362@qq.com>
Date: Sun, 17 Mar 2019 13:27:27 +0800
Subject: [PATCH] enhance textbox
---
HandyControl/Controls/Slider/CompareSlider.cs | 34 +--------------
.../Themes/Styles/Base/ComboBoxBaseStyle.xaml | 34 +++++++--------
.../Themes/Styles/Base/TextBoxBaseStyle.xaml | 43 +++++++++----------
3 files changed, 39 insertions(+), 72 deletions(-)
diff --git a/HandyControl/Controls/Slider/CompareSlider.cs b/HandyControl/Controls/Slider/CompareSlider.cs
index 07bd98af..23ff9a43 100644
--- a/HandyControl/Controls/Slider/CompareSlider.cs
+++ b/HandyControl/Controls/Slider/CompareSlider.cs
@@ -22,38 +22,6 @@ namespace HandyControl.Controls
{
get => GetValue(SourceContentProperty);
set => SetValue(SourceContentProperty, value);
- }
-
- //private bool _isLoaded;
-
- //private double _tempValue;
-
- //public CompareSlider()
- //{
- // //Loaded += delegate
- // //{
- // // if (_isLoaded) return;
- // // _isLoaded = true;
- // // Value = _tempValue;
- // //};
- //}
-
- ////protected override void OnRender(DrawingContext drawingContext)
- ////{
- //// base.OnRender(drawingContext);
-
- //// Value = _tempValue;
- ////}
-
- ////public override void OnApplyTemplate()
- ////{
- //// base.OnApplyTemplate();
- //// _tempValue = Value;
- //// Value = Orientation == Orientation.Horizontal ? Maximum : 0;
- //// if (_isLoaded)
- //// {
- //// Value = _tempValue;
- //// }
- ////}
+ }
}
}
\ No newline at end of file
diff --git a/HandyControl/Themes/Styles/Base/ComboBoxBaseStyle.xaml b/HandyControl/Themes/Styles/Base/ComboBoxBaseStyle.xaml
index b2b2c7b0..818f18c8 100644
--- a/HandyControl/Themes/Styles/Base/ComboBoxBaseStyle.xaml
+++ b/HandyControl/Themes/Styles/Base/ComboBoxBaseStyle.xaml
@@ -199,7 +199,7 @@
-
+
@@ -404,7 +404,7 @@
-
+
@@ -515,7 +515,7 @@
-
+
@@ -561,10 +561,10 @@
-
+
-
+
@@ -592,7 +592,7 @@
-
+
@@ -665,10 +665,10 @@
-
+
-
+
@@ -677,7 +677,7 @@
-
+
@@ -693,7 +693,7 @@
-
+
@@ -766,10 +766,10 @@
-
+
-
+
@@ -797,7 +797,7 @@
-
+
@@ -891,10 +891,10 @@
-
+
-
+
@@ -903,7 +903,7 @@
-
+
@@ -919,7 +919,7 @@
-
+
diff --git a/HandyControl/Themes/Styles/Base/TextBoxBaseStyle.xaml b/HandyControl/Themes/Styles/Base/TextBoxBaseStyle.xaml
index 8120f64b..9b0bc92b 100644
--- a/HandyControl/Themes/Styles/Base/TextBoxBaseStyle.xaml
+++ b/HandyControl/Themes/Styles/Base/TextBoxBaseStyle.xaml
@@ -16,7 +16,7 @@
-
+
@@ -42,8 +42,7 @@
-
-
+
@@ -51,7 +50,7 @@
-
+
@@ -75,13 +74,13 @@
-
+
-
-
+
+
@@ -104,13 +103,13 @@
-
+
-
-
+
+
@@ -143,10 +142,10 @@
-
+
-
+
@@ -154,8 +153,8 @@
-
-
+
+
@@ -165,8 +164,8 @@
-
-
+
+
@@ -203,10 +202,10 @@
-
+
-
+
@@ -214,8 +213,8 @@
-
-
+
+
@@ -225,8 +224,8 @@
-
-
+
+