Selection
ListPicker for Xamarin enables the app users to quickly and easily select an item from a list of items. This topic will go through the provided by the ListPicker API related to item selection.
Important Properties
- SelectedItem(object): Specifies the selected item of the list picker.
Methods
List Picker for Xamarin allows you to clear the selected date/time through its ClearSelection method
Example
and we can clear the selection inside the button click event:
a sample ViewModel:
and the Business model:
also you will need to add the following namespace:
Events
List Picker for Xamarin exposes a SelectionChanged event which is raised when the user confirms the selected item.
Example
and the SelectionChanged event, where sender is the RadListPicker control:
a sample ViewModel:
and the Business model:
where the sender is the RadListPicker control.
also you will need to add the following namespace: