Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

Edited Issue: 3.0.0 release, bug in TimePicker, DateTimePicker [22435]

$
0
0
<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 **

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)_


Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>