如何创建一个用户界面设计工具? [英] How to create an UI Designer utility?
问题描述
我需要创建一个实用程序的用户都可以创建自己的数据输入画面。用户应该能够拖放正常的UI控件(文本框
,单选
,复选框
,列表框
,组合框
和图片
)的任何容器,并安排他们到适合自己的需要。用户必须能够改变的背景和默认值(文本框
,组合框
等)。应该有一个选项,保存为XML / XAML的设计的屏幕用于动态创建用户界面。
I need to create an utility where user can create their own data entry screen. The user should be able to drag and drop normal UI controls (TextBox
, RadioButton
, CheckBox
, ListBox
, ComboBox
and Image
) to any container and arrange them to fit their need. The user must be able to change the background and default values (for TextBox
, ComboBox
, etc). There should be an option to save the designed screen in either XML/XAML to be used for dynamic UI Creation.
对如何处理这种情况下的任何建议都大大AP preciated。
Any suggestions on how to approach this scenario are greatly appreciated.
推荐答案
我也是工作的一个类似项目,我们使用了画布
作为设计师的表面;因为这样做$ C $的CProject文章 -
I am also working on a similar project and we have used Canvas
as designer surface; as done in this CodeProject article -
WPF图设计 - 第4部分 HTTP://www.$c$cproject.com/KB/WPF/WPFDiagramDesigner_Part4的.aspx
WPF Diagram Designer - Part 4 http://www.codeproject.com/KB/WPF/WPFDiagramDesigner_Part4.aspx
在此基础上还有一个项目可以在codePLEX发现 -
One more project based on this can be found at codeplex-
这篇关于如何创建一个用户界面设计工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!