Using the C1Calendar Control > C1Calendar Elements |
User interface abstraction of C1Calendar implies an existence of three main parts:
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. |