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

Closed Issue: DateTimePicker.OnPreviewMouseUp [20403]

$
0
0
When selecting a date, if the AutoCloseCalendar property is true and the calendar DisplayMode is Year or Decade it is not possible to select a date using the calendar. Selecting a month or year in these modes invokes OnPreviewMouseUp which in turn invokes CloseDateTimePicker and prevents the user from making the selection.

A possible work around is

```
protected override void OnPreviewMouseUp(MouseButtonEventArgs e)
{
if (Mouse.Captured is CalendarItem)
{
Mouse.Capture(null);

if (AutoCloseCalendar && _calendar.DisplayMode == CalendarMode.Month)
{
CloseDateTimePicker(true);
}
}
}
```
Comments: Fixed in v2.1.

Viewing all articles
Browse latest Browse all 4964

Trending Articles



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