This example generates Time Scales from a collection. The TimelineView.TimeScalesSource property specifies the collection of objects that describe time scale elements. The TimelineView.TimeScaleTemplate property allows you to define a data template used to generate time scales. The example uses the TimelineView.TimeScaleTemplateSelector property to choose a template based on the time scale type and generates the following time scales: Day, Hour, and Half Hour.
The TimelineView.TimeScales collection stores all time scales. You can also use collection members to add, modify, or remove time scales.
- MainWindow.xaml
- MainViewModel.cs (VB: MainViewModel.vb)
- TimeScaleTemplateSelector.cs (VB: TimeScaleTemplateSelector.vb)
(you will be redirected to DevExpress.com to submit your response)