Search
Customizing the Appearance of Views

The appearance of individual calendar views depends on the settings corresponding to them. For example, the appearance of the list view is controlled by the Calendar.ListViewSettings property, while the appearance of the timetable view is controlled by the Calendar.TimetableSettings property, and so on. The month range view is an exception to this rule since it depends on both Calendar.MonthSettings and Calendar.MonthRangeSettings.

The settings object defines styles for various elements of the view. Most settings contain properties, which let you change the size and number of elements (such as columns, rows, headers, and so on) contained in the view. There are usually properties that control the padding and margin of various elements and properties that define the format of the text displayed in the view.

Most view elements can be custom-drawn by setting the appropriate flag using the setCustomDraw method of the Calendar and listening for the draw event. The draw method receives an argument, that specifies which element is being drawn, its coordinates and style. Use the methods of the Graphics object supplied to the method to render your custom visualization.