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 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 in the CustomDraw property of the Calendar and handling the Draw event. Draw event handler receives argument, which specifies which element is being drawn, its coordinates and style. Use the methods of the IGraphics object argument to render your custom visualization.