I'm using the RadCalendar in Month selection mode (DateSelectionMode="Month"). I want the control to default to the current month and for this month to be visibly selected by default as well.
When I default the SelectedDate and/or DisplayDate properties to the current date the current month is still not visibly selected.
The only way I can get this to work is via a hack like:
When I default the SelectedDate and/or DisplayDate properties to the current date the current month is still not visibly selected.
The only way I can get this to work is via a hack like:
Loaded += (s, e) => { var today = DateTime.Today; calendar.SelectedDate = new DateTime(today.Year, today.Month, 2); calendar.SelectedDate = new DateTime(today.Year, today.Month, 1); };Is this a bug? Is there a better way to default to the current month?