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.
-
Define the TimePicker:
<telerik:RadTimePicker MinimumTime="8:00:00" MaximumTime="19:00:00"/>
-
Add the namespace:
xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
See Also