Calendar BlackoutDates

Feb 3, 2009 at 7:24 PM
Following with the M-V-VM pattern i would really like to bind my own ObservableCollection<DateRange or even DateTime> to the BlackoutDates property... Is there plans to make BlackoutDates a Dep property? It would be nice for this property to take a collection of DateTime objects since DateRange is pretty specific to the control... it also makes the M-V-VM a bit harder to follow... especially if you have a table of DateTime objects in your database...

Oct 28, 2009 at 1:34 PM

Agreed.  The current set of calendar controls are about impossible to fit in with MVVM.  Or style, or do anything useful with them.

Dec 15, 2009 at 5:18 PM


Mar 5, 2010 at 5:41 PM
Edited Mar 5, 2010 at 5:42 PM

any chance this might happen in the next release?

Also, because BlackoutDates is read-only you have to add one CalendarDateRange at a time. And because it's an ObservableCollection, every time you add, it's going to refresh the UI. If you have more than ~100 blackout dates, performance suffers pretty bad. For myself, I've added an AddDateRanges method to the CalendarBlackoutDatesCollection class that bypasses the UI refresh until the end, but it seems to me y'all should reconsider this design.