private void TargetFilesTab_KeyDown(object sender, KeyEventArgs e) { if (Keyboard.IsKeyDown(Key.Enter)) { foreach (string file in TargetFilesTab.SelectedItems) { Process.Start(TargetPath.Text + "\\" + file); } } else if ((Keyboard.IsKeyDown(Key.LeftCtrl) && Keyboard.IsKeyDown(Key.C)) && _selectedFilesToCopy.Count > 0) { Clipboard.SetFileDropList(_selectedFilesToCopy); } else if (Keyboard.IsKeyDown(Key.LeftCtrl) && Keyboard.IsKeyDown(Key.A)) { TargetFilesTab.SelectAll(); } else if (Keyboard.IsKeyDown(Key.LeftCtrl) && Keyboard.IsKeyDown(Key.D)) { TargetFilesTab.UnselectAll(); } }
private void ContextMenuTargetSelectAll_Click(object sender, RoutedEventArgs e) { TargetFilesTab.SelectAll(); }