在 WPF 中制作可移动控件 [英] Making a moveable control in WPF

查看:23
本文介绍了在 WPF 中制作可移动控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个面板,在该面板中有几个矩形控件(控件数量不同)我希望用户能够在面板内移动控件,以便他们可以按照适合自己的方式排列控件最好的事物.有没有人有任何我可以阅读的资源或可以让我走上正确道路的简单提示?

I have a panel, within that panel are several rectangular controls (the number of controls vaires) I want the user to be able to move the controls around within the panel so that they can arrange the controls in the way that suits them best. does anyone have any resources i could read or simple tips which would get me headed down the right road?

谢谢

推荐答案

你可以在这里找到很多灵感:

You can find a lot of inspiration here:

http://www.codeproject.com/KB/WPF/WPFDiagramDesigner_Part1.aspx

http://www.codeproject.com/KB/WPF/WPFDiagramDesigner_Part2.aspx

http://www.codeproject.com/KB/WPF/WPFDiagramDesigner_Part3.aspx

http://www.codeproject.com/KB/WPF/WPFDiagramDesigner_Part4.aspx

这篇关于在 WPF 中制作可移动控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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