This example generates time rulers from a collection. The DayViewBase.TimeRulersSource property specifies the collection of objects that describe time ruler elements. The DayViewBase.TimeRulerTemplate property allows you to define a data template used to generate time rulers. You can create a style for the TimeRulerCellControl to customize generated time rulers.
The DayViewBase.TimeRulers collection stores all time rulers for the current view. You can also use collection members to add, modify, or remove time rulers.