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
75
How do you programmatically change the current date on the XamDayView?
posted

I would like to programmatically change the current date on the XamDayView, but I am unable to find any property or method that will allow me.  Is this possible or am I wasting my time?

  • 54937
    Offline posted

    What do you mean by the current date? Do you mean the date(s) that are displayed within the control? The VisibleDates collection is the collection of dates that indicate/control the days that are displayed. The SelectedTimeRange is used to indicate/control the range of timeslots that are selected.

  • 2180
    Offline posted

    Hello,

     

    If you want change the date that the XamDayView displays, you should modify its VisibleDates property. There is no property for changing the current date (the one highlighted with yellow header and border), it is the current date of the operating system. This is the same as the standard WPF Calendar and DatePicker controls.

     

    Thanks,

    Diyan Dimitrov