一个wpf控件,允许拖放,平移和缩放...... [英] A wpf control which allows drag&drop, panning and zooming...

查看:457
本文介绍了一个wpf控件,允许拖放,平移和缩放......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好伙伴,



我有一个很大的问题,希望你能帮助我:)



所以,我需要一个允许拖放自定义控件,缩放和平移的控件(比如无限制地扩展画布)



我看了周围发现了这篇不错的文章:

用于缩放和平移的WPF自定义控件 [ ^ ]



因此输出是我所需要的,除了拖放部分......我怎么能成功呢?我根本没有胶水:(



当拖放物品仍然可以点击时也会很好,就像右击打开自定义选项菜单一样那不是必须拥有的...



任何想法都非常受欢迎!非常感谢:)

欢呼



我尝试了什么:



我尝试了一些平移和缩放控制,但没有一个允许拖放或只是复杂,以使其使用我的工具(http://www.codeproject.com/Articles/22952/WPF-Diagram-Designer-Part)

Hello mates,

I have a huge problem and hope you are kind enough to help me out :)

So, I need a control which allows Drag&Drop custom controls, zooming and panning (like extending a canvas without limitations)

I´ve looked around and found this nice article:
A WPF Custom Control for Zooming and Panning[^]

So the output is quite what I need except the drag&drop part...how I can make it possible? I have no glue at all :(

It also would be nice when the drag&dropped items are still clickable, like a right click opens a custom option menu, but thats not a must have at the moment...

Any ideas are very welcome! thank you a lot :)
cheers

What I have tried:

I´ve tried some panning and zooming controls, but none of them allow drag&drop or are just to complex to get it working with my tool (http://www.codeproject.com/Articles/22952/WPF-Diagram-Designer-Part)

推荐答案

看看这个 [ ^ ]。



它显示了如何进行DragDrop和Zoom。
Take a look at this[^].

It shows how to do DragDrop and Zoom.


这篇关于一个wpf控件,允许拖放,平移和缩放......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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