Hi
I needed to display some specific dates as selected dates when the application loads so what i did was
public Window1() { InitializeComponent(); xamMonthCalendar.SelectedDates.Add(DateTime.Now.AddDays(1)); xamMonthCalendar.SelectedDates.Add(DateTime.Now.AddDays(2)); }
My assumption was that it would display the selectedDates as "grayed" to distinguish them from others so the user know that these are already selected dates but currently its not showing those selectedDates as "grayed".
The Xaml Contains nothing but
<igEditors:XamMonthCalendar Name="xamMonthCalendar" Theme="Office2k7Black" />
Is my assumption wrong or am I missing something out here?How can i display selectedDates as "grayed"?
Regards
DS
The issue seems to be that you are adding a Date which has a time portion. Instead of using DateTime.Now, try using DateTime.Today.