New to Telerik UI for .NET MAUI? Start a free 30-day trial
Time Ranges in .NET MAUI TimePicker
The TimePicker allows you to define a time range and choose a time within that range through the following properties:
-
MinimumTime
(TimeSpan
)—Defines a time which marks the beginning of the range of the available time values. The default value isTimeSpan.Zero
. -
MaximumTime
(TimeSpan
)—Defines a time which marks the end of the range of the available time values to choose from. The default value isTimeSpan(23, 59, 59)
.
The following example shows how to set the time ranges.
1. Define the TimePicker:
XAML
<telerik:RadTimePicker MinimumTime="8:00:00"
MaximumTime="19:00:00"/>
1. Add the namespace:
XAML
xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"