Browse Source

Merge aae5cc0cb8 into 9518adc6f1

pull/1183/merge
Tomasz Romaszkiewicz 9 years ago
committed by GitHub
parent
commit
ecdd48abd6
  1. 2
      ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/DateTimeUpDown/Implementation/DateTimeUpDown.cs

2
ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/DateTimeUpDown/Implementation/DateTimeUpDown.cs

@ -825,6 +825,8 @@ namespace Xceed.Wpf.Toolkit
//this only occurs when the user manually type in a value for the Value Property //this only occurs when the user manually type in a value for the Value Property
if( info == null ) if( info == null )
info = (this.CurrentDateTimePart != DateTimePart.Other) ? this.GetDateTimeInfo( this.CurrentDateTimePart ) : _dateTimeInfoList[ 0 ]; info = (this.CurrentDateTimePart != DateTimePart.Other) ? this.GetDateTimeInfo( this.CurrentDateTimePart ) : _dateTimeInfoList[ 0 ];
else if (string.IsNullOrWhiteSpace(info.Content)) //romasz: possible that the user will select empty space in between
info = _dateTimeInfoList[_dateTimeInfoList.IndexOf(_selectedDateTimeInfo) - 1];
DateTime? result = null; DateTime? result = null;

Loading…
Cancel
Save