Category / Section
How to hide done and cancel buttons of SfTimePicker?
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:
