When i switch the CurrentView between Week and Day View, the control still displays in the WeekMode, even though the CurrentViewMode of the XamOutlookCalendarView is set to OutlookCalendarViewMode.Day. Same behavior is observed when switching between ScheduleView to DayView.
However, if I switch from month view to day view, it works fine.
Please Suggest.
Thank You,
Hariharan
This is correct behavior. While in DayViewDay the control can display 1 or more days so we cannot assume that simply changing the CurrentView should change the visible dates because depending on the order of the code you have already changes the visible dates. You can either manipulate the VisibleDates directly or you can execute the XamOutlookCalendarViewChangeToDayViewCommand with the xamOutlookCalendarView as the parameter.
How do I set the visible dates? There is a CurrentViewDateRangeProperty that cannot be set , and I cant even bind to it with a oneway to source binding. Also the dateNavigator does not expose SelectedDates property . Is there a way for me to get the visible dates in xaml using bindings?