拖曳拖放工具的组件 [英] Componets for drag n drop tool

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

问题描述

我正在尝试开发一种具有拖放功能的工具,以可视化组件的连接.您可以假定它们是电子电路中具有输入和输出引脚的寄存器,电容器等.我正在使用Visual C#.我创建的bt d组件不是透明的. Dey似乎是2D图片.我将组件一个放置在另一个之上,将未使用的顶部组件隐藏在下面.我想让DEM成为实际组件.

是否有任何方法可以实现它,或者有人可以建议我一些更好的方法..

谢谢,
Sharath

I''m trying to develop a tool with drag n drop facility to visualize connection of components. u can assume them to be registers, capacitors etc., with input and output pins in an electronic circuit. I''m using Visual C#. bt d components I create are not transparent. dey appear to be 2D pictures. wen I place components one above d other, d unused part of top component hides d component below it. I want dem to b actual components.

Is der any method to achiev it, or can anybody suggest me some better approaches..

Thanks,
Sharath

推荐答案

主要问题是:您未指定要使用的UI库,因此完全不可能回答问题.另请参阅我对问题的评论.

但是,我不想浪费时间回答您的问题和解决您的问题.我想给您一个非常不同的建议:使用WPF,仅此而已.使用WPF,您描述的问题以及许多其他问题都不存在. (您将面临其他问题,不用担心:-)). WPF旨在服务于不同种类的表示领域,任何形式的图表就是其中之一.

—SA
Main problem is: you did not specify what UI library you use, and that makes answering to your question totally impossible. Please also see my comment to the question.

However, I don''t want waste time on answering your question and addressing your problem. I want to give you a very different advice: use WPF, and nothing else. With WPF, the problem you describe does not exist, as well as many other problems. (You will face other problems, don''t worry :-)). WPF is designed to serve different kinds of presentation fields, and the diagramming of any kind is one of them.

—SA


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

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