SelectorItem Customization in UWP TimePicker (SfTimePicker)

22 Jul 20261 minute to read

SelectorItemWidth and SelectorItemHeight

The item size in the SfTimeSelector control can be changed by setting the SelectorItemWidth and SelectorItemHeight properties.

SelectorItemSpacing

The SelectorItemSpacing property provides the space between the items in the SfTimeSelector.

SelectorItemCount

The SelectorItemCount property is used to specify the number of items to be used in the SfTimeSelector.

The following code sample shows the usage of the SelectorItemWidth, SelectorItemHeight, SelectorItemSpacing, and SelectorItemCount properties.

<Page
   ...
   xmlns:input="using:Syncfusion.UI.Xaml.Controls.Input">

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">

                    <syncfusion:SfTimePicker VerticalAlignment="Center" x:Name="timePicker"

                        Width="200" SelectorItemWidth="100"

                    SelectorItemHeight="100"

                    SelectorItemSpacing="50"

                    SelectorItemCount="4"/>



    </Grid>

</Page>
using Syncfusion.UI.Xaml.Controls.Input;

timePicker.SelectorItemHeight = 100;
timePicker.SelectorItemWidth = 100;
timePicker.SelectorItemSpacing = 50;
timePicker.SelectorItemCount = 4;
Imports Syncfusion.UI.Xaml.Controls.Input;

timePicker.SelectorItemHeight = 100
timePicker.SelectorItemWidth = 100
timePicker.SelectorItemSpacing = 50
timePicker.SelectorItemCount = 4

The output is displayed in the following image:

Features_img12