从绘制的绘制表单生成C#表单 [英] Generate a C# form from a form drawn on paint
本文介绍了从绘制的绘制表单生成C#表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道是否可以通过绘图应用程序生成C#表单,比如用户绘制文本框,标签,绘制下拉菜单以及应用程序将整个图像转换为真正的C#表单。关于相关库的任何线索都会非常有用。谢谢您的时间。
I was wondering whether its possible to generate a C# form through paint application, like the user draws text boxes, labels, dropdowns on paint and an application transforms the whole image into a real C# form. Any clues about related library will be very helpful. Thank you for your time.
推荐答案
您好,
如果我理解你,你想画画表示表单的图像,然后使用工具或库将图像转换为真实的C#表单。
简答:你不能。互联网上没有可用于完成此类任务的工具/库。您应该使用Visual Studio(或类似的IDE)创建表单,或者自己编写表单的代码。
Hi,
If I understand you, you want to draw an image that represents a form and then convert the image to a real C# form using a tool or library.
Short answer: you can't. There's no tool/library available on internet to accomplish such a task. You should create the form using Visual Studio (or a similar IDE), or write the code of the form yourself.
您可以使用的最接近的工具是MS Expression Blend。这个工具允许你绘制WPF / Silverlight的控件模板,但你仍然需要知道WPF和Silverlight的基本知识才能有效地使用它。
The closest tool that you can use is MS Expression Blend. This tool will allow you to draw control's template of WPF/Silverlight, but you still need to know the basic of WPF and Silverlight to use it efficiently.
你可以创建自己的应用程序来做所以(虽然这并不容易)。您可以开始,例如允许用户在表单上的任何位置放置标签。我建议你用一个真实的形式(和标签)来实现这个任务。
You may create your own application for doing so (it wouldn't be that easy, though). You could start, for instance allowing the user to place just a label anywhere on the form. I suggest you to use a real form (and label) to realize the task.
这篇关于从绘制的绘制表单生成C#表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文