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 VisualTimeSpan and 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 SelectedDateTime property or the SetRelativeStartTime method or the SetRelativeStartTimeCommand command.

    See Also