I have a problem with changing XamOutlookCalendarView.CurrentViewMode from OutlookCalendarViewMode.DayViewWeek to OutlookCalendarViewMode.DayViewDay.
Changing to and from another ViewModes works perfectly, but in the case above simply nothing happens. I need to select previously selected day when i change from DayViewWeek to DayViewDay.
Help please!
While i'm at it, there is another thing with changing XamOutlookCalendarView.CurrentViewMode that bugs me. First time that change from DayViewWeek to MonthView is happening (or other way around) it takes noticeable amount of time.
Is there a way to fix it?
Hello Maxim,
I have logged this with development under ID: 177121 and I have also created a support ticket on your behalf: CAS-141555-S7X2F7 and have linked the development issue to it, so that you can get automatically updated, when a Service Release containing the fix is available for download. You can get the new version from our website’s “My IG”, “My Keys & Downloads” tags: https://www.infragistics.com/Membership/Default.aspx?panel=Downloads#Downloads
You can also monitor the support ticket’s progress through the “My Support Activity” tag: https://www.infragistics.com/Membership/MySupport.aspx
After reviewing this, our developers said that this is the expected behavior. The CurrentViewMode is changing to DayViewDay (as the property reflects) but that doesn't mean that the VisibleDates will be manipulated. The "day" modes do not constrain what dates may be displayed - you can select 1 day or multiple. Even in Outlook you can select multiple days although they will switch you into week mode if you select all the days of the week or into month mode if you select 2 weeks worth of days (just as we would via the xamDateNavigator when you are selecting dates via that control) but the point is that having 7 consecutive visible days isn't a violation of the "day" modes and we don't make any assumptions that when someone sets the CurrentViewMode property that they want us to manipulate the VisibleDates. We will do some validation that the VisibleDates are valid for the mode (so if you had 1 day in the VisibleDates and chose a week mode we would update it asynchronously).
I attached a sample project where the behavior you want is achieved by executing a XamOutlookCalendarViewCommandSource's SwitchToDayView command.