通过将文件拖到Wpf UserControl中的问题 [英] Problem By Dragging File into Wpf UserControl

查看:75
本文介绍了通过将文件拖到Wpf UserControl中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All。

我正在从应用程序开发我的Windows并且我在WinForm中使用Wpf UserControl,

当我将文件表格桌面拖到MainForm时没有任何事情发生。

i在我的项目中使用了很多代码,但看似未解决的问题。



Hello All.
I'm Developing My Windows From Application And I'm use the Wpf UserControl in WinForm,
When I Drag a File form desktop to MainForm nothing occur .
i used the many code in my project but Seemed to Unsolved problem.

推荐答案

请阅读我对该问题的评论。



与此同时,看看这些文章:

拖放概述 [ ^ ]

数据和数据对象 [ ^ ]

演练:在用户控件上启用拖放功能 [ ^ ]

拖放如何 - 至主题 [ ^ ] :

Please, read my comment to the question.

And in a meanwhile, have a look at these articles:
Drag and Drop Overview[^]
Data and Data Objects[^]
Walkthrough: Enabling Drag and Drop on a User Control[^]
Drag and Drop How-to Topics[^]:
  1. 如何:打开RichTextBox控件上的文件
  2. 如何:创建数据对象
  3. 如何to:确定数据对象中是否存在数据格式
  4. 如何:列出数据对象中的数据格式
  5. 如何:以特定数据格式检索数据
  6. 如何:在数据对象中存储多种数据格式



在WPF中拖放 [ ^ ]


这篇关于通过将文件拖到Wpf UserControl中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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