I would be useful for MVVM to be able to bind the VisibleDates property to an ObservableCollection. Any reason why this can't be done?
Hello Geoff,
I have been looking into your request and although I am not quite sure what you mean by that I doubt that it is impossible. Usually this is a read-only property which gives you access to the days within the control and like other functionality and feature is decided on based mostly on popular demand along with other implementation criteria.
Here is the page where all our clients can influence/contribute to our product line: http://devcenter.infragistics.com/Protected/RequestFeature.aspx . If your suggestion is picked up for development you’ll be notified with an email.
Please let me know if you require any further assistance on the matter.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support
Hi Petar,
I totally agree with jifman.
We certainly need a bindable VisibleDates property. Of course the primary use for this control is to let the user pick its dates. Nonetheless in my application I already have at least 2 different situations in which I need to synchronize the date between the XamMonthCalendar and XamDayView from code:
1) I want to display the next 5 working days for a resource owner (if the owner works only on Wednesday, it means showing 5 Wednesdays (the can even reside in non consecutive weeks ). In this case I want to force the selection of discontinous dates. It doesn't make sense to show a working week. I need to set those dates from code, and since I use MVVM, not from code behind.
2) In another section (outside the schedule) of the program I can see the next appointments of the patient. The user must be able to double click on one of this reminders and force the agenda to open up with pre-selection a particular date/owner.Best regardsRoberto Dalmonte
In the examples where it shows multiple days it's demonstrated by clearing the VisibleDates property on the schedule and then repopulating it using the collection .Add() syntax.
The problem is this property is not a dependency property and I cannot bind to it in the XAML.