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 @@ - +