示例#1
0
 void AdvancedListView_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (ItemClickedCommand != null)
     {
         ItemClickedCommand.Execute(e);
     }
 }
 private void ContentListView_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     Debug.WriteLine("ExpanderView: Selection Changed");
     if (ItemClickedCommand.CanExecute(ContentListView.SelectedItem))
     {
         ItemClickedCommand.Execute(ContentListView.SelectedItem);
     }
 }
示例#3
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 OnItemTapped(object sender, ItemTappedEventArgs e)
 {
     if (e.Item != null && ItemClickedCommand != null && ItemClickedCommand.CanExecute(e))
     {
         ItemClickedCommand.Execute(e.Item);
         SelectedItem = null;
     }
 }