C1MultiMonthCalendar Control
The C1MultiMonthCalendar control represents a multi-month calendar with the ability to interactively navigate through months and select a specific DateTime or its components. C1MultiMonthCalendar builds its UI creating the necessary number of C1MonthCalendar controls.
The most important properties responsible for the UI creation are:
• int MonthCount – the number of months currently represented by the calendar;
• Style MonthCalendarStyle – a Style applied to each child C1MonthCalendar representing a singe month;
• Style MonthSlotStyle – a Style for C1MultiMonthCalendarPresenter elements which are the root elements of a visual tree representing a single month;
• ItemsPanelTemplate MonthsPanel – an ItemsPanelTemplate that defines the panel that lays out elements representing separate months.
To provide a custom look for a C1MultiMonthCalendar:
1. To define a general layout model for a calendar, the C1MultiMonthCalendar.Template property should be assigned (usually through a Setter of a Style). The template visual tree should contain the C1MultiMonthCalendarPresenter to designate a place where a panel with month calendars will appear.
2. To define the Months pane UI, assign a template to the MonthsPanel property. This template will define a panel that lays out month items.
3. To define a single month UI, assign the Style to the MonthSlotStyle property.
|