ClassTimeRulerViewModel
A ViewModel class for the TimeRuler. Contains properties and methods which define the TimeRuler.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.ScheduleView.dll
Syntax:
public class TimeRulerViewModel : ViewModelBase, INotifyPropertyChanged, IDisposable
Inheritance: objectViewModelBaseTimeRulerViewModel
Implements:
Inherited Members
Constructors
TimeRulerViewModel(IDateSpan, ITickProvider, ITickProvider, ITickProvider, TimeSpan)
Initializes a new instance of the TimeRulerViewModel class.
Declaration
public TimeRulerViewModel(IDateSpan dateSpan, ITickProvider minorTickLengthProvider, ITickProvider majorTickLengthProvider, ITickProvider groupTickLengthProvider, TimeSpan pixelLength)
Parameters
dateSpan
The date span of the TimeRuler.
minorTickLengthProvider
The MinorTickLengthProvider.
majorTickLengthProvider
The MajorTickLengthProvider.
groupTickLengthProvider
The GroupTickLengthProvider.
pixelLength
The pixel length of the TimeRuler.
Properties
DateSpan
Gets the DateSpan of TimeRuler.
Dates
Gets the Dates included in the TimeRuler.
LargeScaleMode
Gets the LargeScaleMode of the TimeRuler.
Declaration
public LargeScaleMode LargeScaleMode { get; }
Property Value
MajorTickLength
Gets the MajorTickLength of the TimeRuler.
MinorTickLength
Gets the MinorTickLength of the TimeRuler.
PixelLength
The "zoom" level. Changing this will occasionally regenerate the ticks.
Methods
GenerateDates()
Generates the dates included in the TimeRuler.
Declaration
public void GenerateDates()
NextDate(DateTime)
Gets the next date of the TimeRuler based on the LargeScaleMode.