New to Telerik UI for .NET MAUI? Start a free 30-day trial
Time Span Ranges in .NET MAUI TimeSpanPicker
The TimeSpanPicker allows you to define a time-span range and choose a time interval within that range through the following properties:
-
MinimumTime
(TimeSpan
)—Defines the lowest limit of the available selection range. The default value isTimeSpan(0, 0, 0, 0, 0)
. -
MaximumTime
(TimeSpan
)—Defines the uppermost limit of the available selection range. The default value isTimeSpan(30, 23, 59, 59)
.
If you set a negative value for
MinimumTime
, the TimeSpanPicker will consider this value to be the minimumTimeSpan(0, 0, 0, 0, 0)
value.
The following example shows how to set the time ranges.
Define the TimeSpanPicker:
XAML
<telerik:RadTimeSpanPicker MinimumTime="0:0:00:00"
MaximumTime="8:00:00:0"/>
Add the namespace:
XAML
xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"