WPF拖放问题 [英] WPF Drag and Drop Problem

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

问题描述



我正在尝试创建一个可用于构建图像的拖放模块.
EG:使用三角形和矩形创建房屋...

我已经创建了拖放模块,但是无法将形状放置到固定位置.

如果有人可以给我一个想法或解决这个问题的示例颂歌,那将是一个很大的帮助.
请帮助.

谢谢.

Hi,

Im trying to create a drag and drop module which can be used to build an Image.
EG: Using a triangle and rectangles to create a House...

I have created the drag and drop module but I cant place the shapes to a fixed location.

It''ll be a great help if someone can give me an idea or a sample ode for this problem.
Plz help.

Thank you.

推荐答案

本文 WPF面板 [ ^ ],可能会给您一个如何使用鼠标定位,旋转和缩放控件的想法.

我认为该演示应用程序具有一些物理属性,这些属性不会应用于绘图应用程序,但您应该能够轻松地将其剔除.

希望这会有所帮助,
弗雷德里克(Fredrik)
This article, WPF Surface Panel[^], might give you an idea how to position, rotate and scale a control using the mouse.

I think the demo application has some physics properties that wouldn''t apply to a drawing app but you should be able to easily rip those out.

Hope this helps,
Fredrik


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

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