Class TimeRulerViewModel
A ViewModel class for the TimeRuler. Contains properties and methods which define the TimeRuler.
Inherited Members
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.ScheduleView.dll
Syntax
public class TimeRulerViewModel : ViewModelBase, INotifyPropertyChanged, IDisposable
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
IDate The date span of the TimeRuler. |
ITick The MinorTickLengthProvider. |
ITick The MajorTickLengthProvider. |
ITick The GroupTickLengthProvider. |
System. The pixel length of the TimeRuler. |
Properties
Dates
Gets the Dates included in the TimeRuler.
Declaration
public IList<DateData> Dates { get; }
Property Value
System.
|
DateSpan
Gets the DateSpan of TimeRuler.
Declaration
public IDateSpan DateSpan { get; }
Property Value
LargeScaleMode
Gets the LargeScaleMode of the TimeRuler.
Declaration
public LargeScaleMode LargeScaleMode { get; }
Property Value
MajorTickLength
Gets the MajorTickLength of the TimeRuler.
Declaration
public TimeSpan MajorTickLength { get; }
Property Value
System.
|
MinorTickLength
Gets the MinorTickLength of the TimeRuler.
Declaration
public TimeSpan MinorTickLength { get; }
Property Value
System.
|
PixelLength
The "zoom" level. Changing this will occasionally regenerate the ticks.
Declaration
public TimeSpan PixelLength { get; set; }
Property Value
System.
|
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.
Declaration
public DateTime NextDate(DateTime date)
Parameters
System. The date from which to start the calculation. |
Returns
System. Returns the next date of the TimeRuler. |