From 43564c3cce44f855bcc13b8149e48ed68b477b06 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/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/DateTimeUpDown/Implementation/DateTimeUpDown.cs b/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/DateTimeUpDown/Implementation/DateTimeUpDown.cs index 09699b42..c4c28e1e 100644 --- a/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/DateTimeUpDown/Implementation/DateTimeUpDown.cs +++ b/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(); }