wpf wpf应用程序中的图像拖放

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/806704/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 20:19:58  来源:igfitidea点击:

Image drag and drop in wpf application

wpfimagedrag-and-drop

提问by Jalpesh Vadgama

I want to drag and drop an image on wpf application form. Can anyone provide me the code and other links for that?

我想在 wpf 申请表上拖放图像。谁能给我提供代码和其他链接?

采纳答案by Scott

If you want to D&D within a single WPF application; then this code should get you going:

如果您想在单个 WPF 应用程序中进行 D&D;那么这个代码应该让你去:

Drag and Drop within WPF

在 WPF 中拖放

If you want to D&D between WPF applications, or between another non-WPF application you've got some options, but probably the easiest is to use a bitmap transfer (it takes a bit more code, so let me know and I'll publish it).

如果您想在 WPF 应用程序之间或另一个非 WPF 应用程序之间进行 D&D,您有一些选择,但可能最简单的是使用位图传输(它需要更多的代码,所以让我知道,我会发布它)。

回答by schnaader

Does this drag and drop libraryhelp you?

这个拖放库对你有帮助吗?