New to Telerik UI for .NET MAUI? Start a free 30-day trial

.NET MAUI TimeSpanPicker Default Time Span

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.


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"

Add the namespace:


See Also

In this article