图像拖放在wpf应用程序 [英] Image drag and drop in wpf application

查看:173
本文介绍了图像拖放在wpf应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在wpf申请表上拖放图片。任何人都可以为我提供代码和其他链接?

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

推荐答案

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

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

WPF中的拖放

如果要在WPF应用程序之间进行D& D ,或在另一个非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应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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