In This Topic
User interface abstraction of C1Calendar implies an existence of three main parts:
- A pane that represents a list of the month's days
- A pane that represents a list of days of the week names
- A command pane that is intended to represent a UI that manages a selection of the current month/year
A list of days is represented by the C1CalendarItemPresenter object, which is inherited from the ListBox class. An instance of C1CalendarItemPresenter class is used in the C1Calendar's template visual tree to define a place where a panel with calendar days will appear.
C1Calendar generates UI elements (of the DaySlotPresenter class) representing calendar day cells for the CalendarBase.Year and CalendarBase.Month properties. An actual UI of these DaySlotPresenter elements is defined in the C1CalendarResources.DaySlotTemplate property. Those elements become children of a panel whose UI is defined in the CalendarBase.DaysPanel property.
Note: A regular calendar contains 6 week rows; each row contains 7 days; therefore, 6 * 7 = 42 day cells (referred to as "slots"). Some cells don't represent any day - they are just empty cells.
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.