From d621f30d0f28c8558e18c8851a4cb3c502d2b4c4 Mon Sep 17 00:00:00 2001 From: brianlagunas_cp Date: Mon, 11 Apr 2011 15:55:19 +0000 Subject: [PATCH] DateTimeUpDown: fixed bug when using custom formats and IsEditable = true --- .../DateTimeUpDown/Implementation/DateTimeUpDown.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Main/Source/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/DateTimeUpDown/Implementation/DateTimeUpDown.cs b/Main/Source/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/DateTimeUpDown/Implementation/DateTimeUpDown.cs index 09699b42..c4c28e1e 100644 --- a/Main/Source/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/DateTimeUpDown/Implementation/DateTimeUpDown.cs +++ b/Main/Source/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/DateTimeUpDown/Implementation/DateTimeUpDown.cs @@ -85,6 +85,8 @@ namespace Microsoft.Windows.Controls if (string.IsNullOrEmpty(newValue)) throw new ArgumentException("CustomFormat should be specified.", FormatString); + _dateTimeParser.Format = newValue; + InitializeDateTimeInfoListAndParseValue(); }