在WPF中拖放动态创建的按钮 [英] Drag and drop dynamically created button in WPF

查看:78
本文介绍了在WPF中拖放动态创建的按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

谁能帮我解决如何在wpf中拖放动态创建的按钮的问题.
我在一个应用程序中有两个统一网格,我通过代码创建了按钮,现在我想将按钮拖放到另一个统一网格.
请提供任何带有源代码的示例.

谢谢,

Hello,

Can any one help me out how to drag and drop a dynamically created buttons in wpf.
i have two uniform grids in the application on one i created buttons from code and now i want to drag and drop the buttons to another uniform grid.
plz provide me any example with source code.

Thanks,

推荐答案

可能您没有正确搜索google.结果中有无数系列文章.
以下是一些可以增进胃口的链接:
http://www.wpftutorial.net/DragAndDrop.html [ http://blogs.claritycon.com/blog/2009 /03/31/generic-wpf-drag-and-drop-adorner/ [ http://msdn.microsoft.com/en-us/library/ms742859.aspx [ ^ ]

希望有帮助.
Pehaps you didn''t google properly. There are endless series of articles in the result.
Below are few links to wet your appetite:
http://www.wpftutorial.net/DragAndDrop.html[^]

http://blogs.claritycon.com/blog/2009/03/31/generic-wpf-drag-and-drop-adorner/[^]

http://msdn.microsoft.com/en-us/library/ms742859.aspx[^]

Hope that helps.


这篇关于在WPF中拖放动态创建的按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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