Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
240
Changing WeekDisplayMode to WorkWeek then back to None does not work (2014.1)
posted

Hello,

I have noticed some strange behavior: I have a XamDayView with the WeekDisplayMode data-bound to an enumeration on the ViewModel. The WeekDisplayMode is controlled from a ComboBox whose ItemsSource is a list of WeekDisplayMode's. Window loads, the default is None. User changes to WorkWeek, DayView renders fine (with 5 days). User changes back to None, and the DayView remains in WorkWeek view. I noticed that the VisibleDates read-only collection remains with 5 days, even though the mode is set to None. I have also noticed reading from the VisibleDates collection in code seems to make the DayView stick in WeekDisplayMode.None (before changing it via ComboBox).

Am I doing something wrong?

As indicated in the forum topic, I am using 14.1.20141.2108. Thanks