private async void RowSelected(object sender, SelectedItemChangedEventArgs e) { ((ListView)sender).SelectedItem = null; if (!DoOnce()) { return; } if (e.SelectedItem is CipherView cipher) { await _vm.SelectCipherAsync(cipher); } }
private async void RowSelected(object sender, SelectionChangedEventArgs e) { ((ExtendedCollectionView)sender).SelectedItem = null; if (!DoOnce()) { return; } if (e.CurrentSelection?.FirstOrDefault() is CipherView cipher) { await _vm.SelectCipherAsync(cipher); } }