Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
380
Pre-Loading SelectedDates
posted

I want to "pre-load" a number of selected dates on wpf form with a XamMonthCalendar control. I have my form bound to a viewmodel. Can I create a collection of DateTime objects in my viewmodel and have it bound to the XamMonthCalendar? If I can, what should the XAML look like?

Thanks!

Bob

 

 

  • 69686
    Verified Answer
    posted

    Hello Bob,

    The SelectedDates collection of the XamMonthCalendar is a readonly colleciton and you will not be able to bind it. You will have to add the dates manually in the SelectedDates.