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.
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.