https://blog.csdn.net/weizb1688/article/details/45845745
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);
}
}
wpf 判断按下ctrl键
最新推荐文章于 2020-11-14 02:54:43 发布