Default TimeSpan

The TimeSpanPicker provides options for setting its default time interval.

Current Selected Time Interval

To define the currently selected time, use the Time(TimeSpan?) property, which defines the current time interval selection. The default value is null.

The following example shows how to set the currently selected time interval.

Define the TimeSpanPicker.

<telerik:RadTimeSpanPicker Time="5:10:30:00"/>

Add the namespace.

xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"

DefaultHighlightedTime Interval

The TimeSpanPicker enables you to set its default highlighted time interval by using the DefaultHighlightedTime(TimeSpan) property, which defines the System.TimeSpan that will be used to pre-scroll each spinner when the RadTimeSpanPicker.Time property is set to null.

The following example shows how to set the default highlighted time interval.

Define the TimeSpanPicker.

<telerik:RadTimeSpanPicker DefaultHighlightedTime="5:10:30:00"
                                            SpinnerFormat="G"
                                            AreSpinnerHeadersVisible="False"/>

Add the namespace.

xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"

See Also

In this article
Not finding the help you need?