Browse Source

DateTimeUpDown: fixed bug when using custom formats and IsEditable = true

pull/1645/head
brianlagunas_cp 15 years ago
parent
commit
43564c3cce
  1. 2
      ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/DateTimeUpDown/Implementation/DateTimeUpDown.cs

2
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();
}

Loading…
Cancel
Save