Category / Section
How to set null value to a SfTimePicker?
1 min read
The value of time in SfTimePicker can be set as null using AllowNull property. The same has been explained in the following code,
<Grid HorizontalAlignment="Center" VerticalAlignment="Center"> <input:SfTimePicker x:Name="sftimepicker" Height="30" Width="180" AllowNull="True" Value="{x:Null}"> </input:SfTimePicker> </Grid>
sftimepicker.AllowNull = true; sftimepicker.Value = null;
Output: