Scheduler for WPF | ComponentOne
Using the C1Calendar Control / Days of Week
In This Topic
    Days of Week
    In This Topic

    The days of the week list is represented by the DaysOfWeekPresenter class derived from ItemsControl. An instance of DaysOfWeekPresenter should be used as a placeholder in the C1Calendar.Template visual tree to specify where the days of the week pane should be placed. DaysOfWeekPresenter generates 7 DaysOfWeekPresenter objects as children of a panel whose template is defined in the C1Calendar CalendarBase.DaysOfWeekPanel. Each DaysOfWeekPresenter object represents a single day of the week. A UI of each DayOfWeekSlotPresenter is defined in the C1Calendar CalendarBase.DayOfWeekSlotTemplate property. Each DayOfWeekSlotPresenter receives a DayOfWeekSlot object as its DataContext. DayOfWeekSlot provides a set of properties for convenient binding of the DayOfWeekSlotPresenter UI, like the following:

    The order of the represented days of the week in the list is culture-specific. For example, the first day of the week is Sunday in the USA culture and Monday in the Russian culture.

    Note: C1Calendar is a part of C1.WPF.Schedule .NET Framework assembly only so it can be used directly without using any other assembly. However, it is not a part of the C1.WPF.Scheduler (.NET) assembly. Therefore, in order to use C1Calendar with the Scheduler control for .NET, you need to use the C1.WPF.Calendar assembly.