From 21a737032dc2deed147c6c920621d6ebcce6ba7c Mon Sep 17 00:00:00 2001 From: brianlagunas_cp Date: Sun, 17 Apr 2011 17:58:13 +0000 Subject: [PATCH] Numeric UpDown editors: fixed bug dealing with the FormatString I introduced when trying to fix another bug. --- .../NumericUpDown/Implementation/NumericUpDown.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/NumericUpDown/Implementation/NumericUpDown.cs b/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/NumericUpDown/Implementation/NumericUpDown.cs index 5c9d2b6b..4429a8b5 100644 --- a/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/NumericUpDown/Implementation/NumericUpDown.cs +++ b/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/NumericUpDown/Implementation/NumericUpDown.cs @@ -39,7 +39,8 @@ namespace Microsoft.Windows.Controls protected virtual void OnFormatStringChanged(string oldValue, string newValue) { - Text = ConvertValueToText(); + if (IsInitialized) + Text = ConvertValueToText(); } #endregion //FormatString