Commands

RadDateTime Picker exposes the following commands:

  • ToggleCommand(ICommand): Allows you to open and close the dialog
  • ClearCommand(ICommand): Allows you to clear the displayed date/time.

Example

<StackLayout>
    <Button Text="Toggle Command" Command="{Binding Source={x:Reference dateTimePicker}, Path=ToggleCommand}"/>
    <Button Text="Clear Command" Command="{Binding Source={x:Reference dateTimePicker}, Path=ClearCommand}"/>
    <telerikInput:RadDateTimePicker x:Name="dateTimePicker" />
</StackLayout>

also you will need to add the following namespace:

xmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"

See Also

In this article
Not finding the help you need? Improve this article