Exemplo n.º 1
0
        protected override void OnViewModelLoaded()
        {
            ListViewCards.SelectAll();
            ListViewHostConfigs.SelectAll();

            base.OnViewModelLoaded();
        }
Exemplo n.º 2
0
 private void HostButton_Click(object sender, RoutedEventArgs e)
 {
     if (lastSelectedAllHosts)
     {
         foreach (var range in ListViewHostConfigs.SelectedRanges)
         {
             ListViewHostConfigs.DeselectRange(range);
         }
     }
     else
     {
         ListViewHostConfigs.SelectAll();
     }
     lastSelectedAllHosts = !lastSelectedAllHosts;
 }