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);
}
}邮件联系: weijob1688@163.com
本文介绍了一个 WPF 应用程序中实现拖放功能的具体代码实例。当按下 Control 键时,程序会触发拖放操作,并进行元素的复制。此外还包含了一个用于进一步交流的邮箱地址。
819

被折叠的 条评论
为什么被折叠?



