判定ctrl 键是否被按下


if ((Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control)//就是这一块
                        {
                            DragDrop.DoDragDrop((ecsRoot.SelectedItem as TreeViewItem), ecsRoot.SelectedValue, DragDropEffects.Copy);
                            if (_draggedItem != null && _target != null)
                            {
                                CopyItem(_draggedItem, _target, true);
                            }
                        }


邮件联系: [email protected]

你可能感兴趣的:(判定ctrl 键是否被按下)