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

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

    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