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