ComponentOne DateTimeEditors for UWP
C1TimeSelector Help / C1TimeSelector Task- Based Help / Setting the Selected Time
In This Topic
    Setting the Selected Time
    In This Topic

    You can specify the time of a C1TimeSelector control by setting the SelectedTime property in XAML or code.

    In XAML

    To specify the initially selected time, edit your XAML markup to resemble the following:

    Markup
    Copy Code
    <Xaml:C1DateTimeSelector SelectedTime="02:05:05"/>
    

    In Code

    C#
    Copy Code
    c1timeselect1.SelectedTime = new TimeSpan( 02, 05, 05);
    

     

    Visual Basic
    Copy Code
    c1timeselect1.SelectedTime = New TimeSpan(02, 05, 05)
    
    See Also