.NET MAUI TimeSpanPicker Incremental Time Steps
By default, the TimeSpanPicker increments each part of its time values by one step.
You can change the default setup using the following properties:
-
DayStep
(int
)—Controls the incremental step of the day value. The default value is1
. -
HourStep
(int
)—Controls the incremental step of the hour value. The default value is1
. -
MinuteStep
(int
)—Controls the incremental step of the minute value. The default value is1
. -
SecondStep
(int
)—Controls the incremental step of the second value. The default value is1
.
The following example shows how to set the time steps.
Define the TimeSpanPicker:
<telerik:RadTimeSpanPicker DayStep="2"
HourStep="4"
MinuteStep="10"
SecondStep="30"/>
Add the namespace:
xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"