<xctk:TimePicker/>
A. Initially the control displays no text.
B. Type a single keyboard symbol, e.g. a digit. Now the control displays the only typed symbol.
C. Press the left arrow key.
Result: An unhandled exception of type 'System.IndexOutOfRangeException' occurred in Xceed.Wpf.Toolkit.dll
The same problem is with DateTimePicker.
Comments: ** Comment from web user: BoucherS **
A. Initially the control displays no text.
B. Type a single keyboard symbol, e.g. a digit. Now the control displays the only typed symbol.
C. Press the left arrow key.
Result: An unhandled exception of type 'System.IndexOutOfRangeException' occurred in Xceed.Wpf.Toolkit.dll
The same problem is with DateTimePicker.
Comments: ** Comment from web user: BoucherS **
Hi,
This is already fixed. The fix is included in v3.1.
In the meantime, you can go in file Xceed.Wpf.Toolkit/DateTimeUpDown/Implementation/DateTimeParser.cs,
In method "ComputeDateTimeString",
and replace
```
1) currentString = dateTime[ i ].ToString();
with
currentString = ( i < dateTime.Length ) ? dateTime[ i ].ToString() : "";
2) currentString = string.Concat( currentString, dateTime[ i ] );
with
currentString = string.Concat( currentString, ( i < dateTime.Length ) ? dateTime[ i ] : '\0' );
```
――――
_Get more controls, features, updates and technical support with [Xceed Toolkit Plus for WPF](https://wpftoolkit.codeplex.com/wikipage?title=Compare%20Editions)_