Skip to content

Commit

Permalink
use select range for select all shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
United600 committed Jan 25, 2025
1 parent 9b814b2 commit 434f2ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Screenbox/Controls/PlaylistView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,14 @@ private void SelectDeselectAllKeyboardAccelerator_OnInvoked(Windows.UI.Xaml.Inpu
if (PlaylistListView.SelectedItems.Count != ViewModel.Playlist.Items.Count)
{
MultiSelectToggle.IsChecked = true;
PlaylistListView.SelectAll();
PlaylistListView.SelectRange(new ItemIndexRange(0, (uint)PlaylistListView.Items.Count));
args.Handled = true;
}
else
{
PlaylistListView.DeselectRange(new ItemIndexRange(0, (uint)PlaylistListView.Items.Count));
args.Handled = true;
}
args.Handled = true;
}
}
}
Expand Down

0 comments on commit 434f2ba

Please sign in to comment.