Time Interval in .NET MAUI Time Picker(SfTimePicker)

7 Dec 20231 minute to read

The SfTimePicker provides three intervals in .NET MAUI Time Picker.

Hour interval

Time Picker provides an option to give an interval between hours using the HourInterval property of SfTimePicker.

<picker:SfTimePicker x:Name="timePicker"
                     HourInterval="2"/>
SfTimePicker timePicker = new SfTimePicker()
{
    HourInterval = 2
};

this.Content = timePicker;

Hour interval in .NET MAUI Date picker.

Minute interval

Time Picker provides an option to give an interval between minutes using the MinuteInterval property of SfTimePicker.

<picker:SfTimePicker x:Name="timePicker"
                     MinuteInterval="2"/>
SfTimePicker timePicker = new SfTimePicker()
{
    MinuteInterval = 2
};

this.Content = timePicker;

Minute interval in .NET MAUI Date picker.

Second interval

Time Picker provides an option to give an interval between seconds using the SecondInterval property of SfTimePicker.

<picker:SfTimePicker x:Name="timePicker"
                     SecondInterval="2"/>
SfTimePicker timePicker = new SfTimePicker()
{
    SecondInterval = 2
};

this.Content = timePicker;

Second interval in .NET MAUI Date picker.