Example #1
0
 private void OnItemTapped(object sender, ItemTappedEventArgs e)
 {
     if (e.Item != null && ItemClickedCommand != null && ItemClickedCommand.CanExecute(e))
     {
         ItemClickedCommand.Execute(e.Item);
         SelectedItem = null; //we don't need the SelectedItem if we have binding to ItemClickedCommand
     }
 }
 private void ContentListView_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     Debug.WriteLine("ExpanderView: Selection Changed");
     if (ItemClickedCommand.CanExecute(ContentListView.SelectedItem))
     {
         ItemClickedCommand.Execute(ContentListView.SelectedItem);
     }
 }
 private void OnItemTapped(object sender, ItemTappedEventArgs e)
 {
     if (e.Item != null && ItemClickedCommand != null && ItemClickedCommand.CanExecute(e))
     {
         ItemClickedCommand.Execute(e.Item);
         SelectedItem = null;
     }
 }