Syncfusion.SfListView.XForms
Example 
Syncfusion.ListView.XForms Namespace > SfListView Class : SelectionChangedCommand Property

SelectionChangedCommand Property (SfListView)

Gets or sets the System.Windows.Input.ICommand to be executed when the selection is changed.
Syntax
public ICommand SelectionChangedCommand {get; set;}
Example
SfListView listView = new SfListView();
listView.SelectionChangedCommand = viewModel.ListViewSelectionChangedCommand;
            
public class CommandViewModel
{
    private Command<Object> selectionChangedCommand;
    public Command<object> ListViewSelectionChagedCommand
    {
       get { return selectionChangedCommand; }
       set { selectionChangedCommand = value; }
    }
    public CommandViewModel()
    {
        ListViewSelectionChagedCommand = new Command<object>(SelectionChagedCommandMethod);
    }
    private void SelectionChagedCommandMethod(object obj)
    {
        listView.SelectedItems.Clear();
    }
}
AssemblyVersion

Syncfusion.SfListView.XForms: 18.1451.0.52

See Also