示例#1
0
 private void OnEdgeTapped(ListView sender, ListViewEdgeTappedEventArgs e)
 {
     // When user releases the pointer after pessing on the left edge of the item,
     // the ListView will switch to Multiple Selection 
     ShoppingListView.SelectionMode = ListViewSelectionMode.Multiple;
     // Also, we want the Left Edge Tap funcionality will be no longer enable. 
     ShoppingListView.IsItemLeftEdgeTapEnabled = false;
     // It's desirable that the Appbar shows the actions available for multiselect
     SetCommandsVisibility(ShoppingListView);
 }
示例#2
0
 private void OnEdgeTapped(ListView sender, ListViewEdgeTappedEventArgs e)
 {
     // When user releases the pointer after pessing on the left edge of the item,
     // the ListView will switch to Multiple Selection
     PastPurchasesListView.SelectionMode = ListViewSelectionMode.Multiple;
     // Also, we want the Left Edge Tap funcionality will be no longer enable.
     PastPurchasesListView.IsItemLeftEdgeTapEnabled = false;
     // It's desirable that the Appbar shows the actions available for multiselect
     SetCommandsVisibility(PastPurchasesListView);
 }