在listview,WPF,MVVM上拖放文件或目录 [英] Drag and drop file or directory on listview, WPF, MVVM
本文介绍了在listview,WPF,MVVM上拖放文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在我的WPF应用程序中的ListView上拖放文件/文件夹目录。
我想要通过MVVM命令绑定获取我的viewModel类中删除的文件/文件夹路径。
我在谷歌上没有找到任何类似的代码。任何人都可以帮我实现这个目标。
我尝试了什么:
Hi,
I want to drag and drop file / folder directory on a ListView in my WPF application.
I want to get the dropped file/folder path in my viewModel class through MVVM command binding.
I didn't found any similar code on google. Anyone please help me to achieve this.
What I have tried:
I didn't found any similar code on google
推荐答案
您可以使用这个 [ ^ ]文章让您入门。
You could probably use a variation of this[^] article to get you started.
这篇关于在listview,WPF,MVVM上拖放文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文