Scheduler for WPF | ComponentOne
C1.WPF.Schedule Namespace / C1Scheduler Class / VisualStartTime Property

In This Topic
    VisualStartTime Property (C1Scheduler)
    In This Topic
    Gets or sets a start of a period of time that is currently represented in the control UI. This is a dependency property.
    Syntax
    'Declaration
     
    
    Public Property VisualStartTime As Date
    public DateTime VisualStartTime {get; set;}
    Remarks
    Usually this property value should not be set directly; it gets its value automatically based on the C1Scheduler.VisualTimeSpan and C1Scheduler.SelectedDateTime properties (the latter one has DateTime.Today as default) so as to be aligned at the beginning of a current week or current month's first week. Setting it to a value that is not correctly aligned relative to the current control UI (for example, if it is not set to the first day of the week for the Month view) can cause an inadequate UI look.

    To change a current period of time safely you can use the C1Scheduler.SelectedDateTime property or the C1Scheduler.SetRelativeStartTime method or the C1Scheduler.SetRelativeStartTimeCommand command.

    See Also