void Handle_ItemTapped(object sender, Xamarin.Forms.ItemTappedEventArgs e) { BookSyncContact contact = e.Item as BookSyncContact; if (contact == null) { return; } contact.IsSelected = !contact.IsSelected; contact.IsSelectedChanged(); listView.SelectedItem = null; }
void Handle_ItemTapped(object sender, Xamarin.Forms.ItemTappedEventArgs e) { if (isSyncing) { return; } BookSyncContact contact = e.Item as BookSyncContact; if (contact == null) { return; } contact.IsSelected = !contact.IsSelected; contact.IsSelectedChanged(); ContactsListView.SelectedItem = null; viewModel.SelectionChanged(); }