From 9858a1e81f0cb10990ccc204a68518e7bdae4ee1 Mon Sep 17 00:00:00 2001 From: brianlagunas_cp Date: Thu, 31 Mar 2011 21:50:18 +0000 Subject: [PATCH] numeric editors: minor changes. --- .../Core/Primitives/UpDownBase.cs | 6 +- .../NumericUpDown/Themes/Generic.xaml | 95 ++++--------------- 2 files changed, 22 insertions(+), 79 deletions(-) diff --git a/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/Core/Primitives/UpDownBase.cs b/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/Core/Primitives/UpDownBase.cs index e253f637..b637b977 100644 --- a/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/Core/Primitives/UpDownBase.cs +++ b/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/Core/Primitives/UpDownBase.cs @@ -135,14 +135,14 @@ namespace Microsoft.Windows.Controls.Primitives { case Key.Up: { - if (AllowSpin && IsEditable) + if (AllowSpin) DoIncrement(); e.Handled = true; break; } case Key.Down: { - if (AllowSpin && IsEditable) + if (AllowSpin) DoDecrement(); e.Handled = true; break; @@ -163,7 +163,7 @@ namespace Microsoft.Windows.Controls.Primitives { base.OnMouseWheel(e); - if (!e.Handled && AllowSpin && IsEditable) + if (!e.Handled && AllowSpin) { if (e.Delta < 0) { diff --git a/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/NumericUpDown/Themes/Generic.xaml b/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/NumericUpDown/Themes/Generic.xaml index 3c7dafd0..7293f996 100644 --- a/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/NumericUpDown/Themes/Generic.xaml +++ b/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/NumericUpDown/Themes/Generic.xaml @@ -9,23 +9,18 @@ - - - - - - + + + + + + - - - - + \ No newline at end of file