Beispiel #1
0
        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;
        }
Beispiel #2
0
        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();
        }