.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.
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:
Add the namespace: