TimeRulerViewModel
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
Initializes a new instance of the TimeRulerViewModel class.
public TimeRulerViewModel(IDateSpan dateSpan, ITickProvider minorTickLengthProvider, ITickProvider majorTickLengthProvider, ITickProvider groupTickLengthProvider, TimeSpan pixelLength)
The date span of the TimeRuler.
minorTickLengthProviderITickProviderThe MinorTickLengthProvider.
majorTickLengthProviderITickProviderThe MajorTickLengthProvider.
groupTickLengthProviderITickProviderThe GroupTickLengthProvider.
pixelLengthTimeSpanThe pixel length of the TimeRuler.
Properties
Gets the Dates included in the TimeRuler.
public IList<DateData> Dates { get; }
Gets the LargeScaleMode of the TimeRuler.
public LargeScaleMode LargeScaleMode { get; }
Gets the MajorTickLength of the TimeRuler.
public TimeSpan MajorTickLength { get; }
Gets the MinorTickLength of the TimeRuler.
public TimeSpan MinorTickLength { get; }
The "zoom" level. Changing this will occasionally regenerate the ticks.
public TimeSpan PixelLength { get; set; }
Methods
Generates the dates included in the TimeRuler.
public void GenerateDates()