From 7835cfb1a5afd73f47a05684cf855e3da7c6c16b Mon Sep 17 00:00:00 2001
From: NaBian <836904362@qq.com>
Date: Fri, 14 Dec 2018 17:36:26 +0800
Subject: [PATCH] Daily maintenance
---
HandyControl/Controls/Input/NumericUpDown.cs | 4 +++-
HandyControl/Themes/Styles/ToggleButton.xaml | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/HandyControl/Controls/Input/NumericUpDown.cs b/HandyControl/Controls/Input/NumericUpDown.cs
index 172bed30..8c539a2d 100644
--- a/HandyControl/Controls/Input/NumericUpDown.cs
+++ b/HandyControl/Controls/Input/NumericUpDown.cs
@@ -150,7 +150,9 @@ namespace HandyControl.Controls
/// 当前值
///
public static readonly DependencyProperty ValueProperty = DependencyProperty.Register(
- "Value", typeof(double), typeof(NumericUpDown), new PropertyMetadata(default(double), OnValueChanged, CoerceValue), IsValidDoubleValue);
+ "Value", typeof(double), typeof(NumericUpDown),
+ new FrameworkPropertyMetadata(default(double), FrameworkPropertyMetadataOptions.BindsTwoWayByDefault,
+ OnValueChanged, CoerceValue), IsValidDoubleValue);
private static void OnValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
diff --git a/HandyControl/Themes/Styles/ToggleButton.xaml b/HandyControl/Themes/Styles/ToggleButton.xaml
index d9f2f408..00e060b3 100644
--- a/HandyControl/Themes/Styles/ToggleButton.xaml
+++ b/HandyControl/Themes/Styles/ToggleButton.xaml
@@ -120,7 +120,7 @@
-
+