Selection
RadDatePicker control enables the app users to quickly and easily select a date value. This topic will go through the provided by the DatePicker API related to date selection.
Important Properties
- Date(DateTime?): Defines the current date selection. The default value is null.
Check below a quick example of Time property usage:
In addition to this, you need to add the following namespace:
Methods
Date Picker for Xamarin allows you to clear the selected date through its ClearSelection method
Example
In addition to this, you need to add the following namespace:
Call ClearSelection inside the button click event - as a result Date property will be updated to null.
Events
RadTime Picker exposes a SelectionChanged event which is raised when the user picks a time value.
Example
In addition to this, you need to add the following namespace:
and the SelectionChanged event, where the sender is the RadDatePicker control