protected override void OnViewModelLoaded() { ListViewCards.SelectAll(); ListViewHostConfigs.SelectAll(); base.OnViewModelLoaded(); }
private void CardButton_Click(object sender, RoutedEventArgs e) { if (lastSelectedAllCards) { foreach (var range in ListViewCards.SelectedRanges) { ListViewCards.DeselectRange(range); } } else { ListViewCards.SelectAll(); } lastSelectedAllCards = !lastSelectedAllCards; }