我们可以从WPF窗口中的Windows资源管理器中删除文件吗? [英] Can we drop a file in windows explorer from WPF window?

查看:134
本文介绍了我们可以从WPF窗口中的Windows资源管理器中删除文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个树视图显示当前的文件系统。我想添加功能来启用将文件放入Windows资源管理器。如果我拖动我的树视图的任何节点,并将其放在Windows资源管理器的任何窗口上,则该文件将被复制到该位置。如何实现这一点?

解决方案

首先阅读这个关于如何在WPF中实现拖放。



读取这个关于什么浏览器期望什么的一些信息,当你放弃它。



然后如果您还有任何问题,请问新问题。


I have a treeview that shows the current file system. I want to add functionality to enable dropping files into windows explorer. If I drag any of the node of my treeview and drop it on any of the window of Windows explorer then the file will be copied to that location. How can I accomplish this?

解决方案

First read this about how to implement drag and drop in WPF.

The read this for some information about what explorer expects when you drop in it.

Then ask new questions if you still have any.

这篇关于我们可以从WPF窗口中的Windows资源管理器中删除文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆