Articles in this section
Category / Section

How to hide done and cancel buttons of SfTimePicker?

1 min read

The Done and Cancel buttons of SfTimeSelector can be hidden by setting ShowCancelButton and ShowDoneButton property as false. The same can be explained in following code,

 

        <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
            <input:SfTimePicker x:Name="sftimepicker" Height="30" Width="250">
                <input:SfTimePicker.SelectorStyle>
                    <Style TargetType="input:SfTimeSelector">
                      <Setter Property="ShowCancelButton" Value="False"/>
                      <Setter Property="ShowDoneButton" Value="False"/>
                    </Style>
                </input:SfTimePicker.SelectorStyle>
            </input:SfTimePicker> 
        </Grid>

 

Output:

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied