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

In This Topic
    SelectedDateTime Property (C1Scheduler)
    In This Topic
    Gets or sets a DateTime currently selected in control UI. The default value is System.DateTime.Today. This is a dependency property.
    Syntax
    'Declaration
     
    
    Public Property SelectedDateTime As Date
    public DateTime SelectedDateTime {get; set;}
    Remarks

    This property value is related to a VisualInterval from the VisualIntervals collection that is currently selected in control UI. If this property is set to a value that is beyond a currently represented period of time defined by the VisualStartTime and VisualTimeSpan properties, the value of the VisualStartTime property is changed automatically so as to set up a period of time that includes the new SelectedDateTime property value.

    You can use this property to bind the control to external controls that provides DateTime navigation, for example, bind it to the SelectedDateTime property of the C1Calendar control.

    See Also