I'm using the XamOutlookCalendarView in conjunction with the XamDateNavigator and I would like to be able to force (possibly via MVVM) the SelectedDates.
Since the SelectedDates property is readonly I don't know how to do it.
Is there a way?
Can I persist the SelectedDates property value and reapply it?
Even if I use the binding of the SelectedDate as soon as I load the control hosting the XamDateNavigator it defaults to DateTime.Today.
Best Regards
Roberto Dalmonte
Hello Roberto,
Thank you for your feedback. I have contacted our development team for more information on the matter and I will follow up with you as soon as I have feedback from them.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Hello,I am using the code you suggested and it works.Although there must be a reason, I cannot understand why in many of your controls you offer a property that is usable in a code behind situation, but is not bindable using MVVM. I am porting my application from WinForms to a cross-platform Silverlight/WPF and almost always, when I use one of your (excellent) controls, I am forced to do something like you suggested.
Not a big issue, but I was wondering what migh be the reason.
Roberto
Hello,
I am just checking if you require any further assistance on the matter.
I have further investigate the functionality that you are looking for and I can suggest using the Loaded event of the Window and in its event handler you can add the dates that you wish to be initially shown in the XamOutlookCalendarView to the SelectedDates property of the XamDateNavigator using the Add method of the collection. I have created a sample application for you which demonstrates how you can achieve this behavior.
If you have any further questions please for not hesitate to ask.
Hello Krasimir,
do you know any tricks to make it work now?Let me explain the picture:Sometimes the owner of a resource is (in my application) a doctor who usually works only on certain weekdays (only tuesdays).
So I would like to open its agenda with only tuesdays already selected.
Please remember that I am using the XamOutlookCalendarView with the XamDateNavigator
Thanks