如何创建UI Designer实用程序? [英] How to create an UI Designer utility?
问题描述
我需要创建一个用户可以创建自己的数据输入屏幕的工具。用户应该能够拖放正常的UI控件( TextBox
, RadioButton
, CheckBox
, ListBox
, ComboBox
和 Image
)到任何容器,并安排他们满足他们的需要。用户必须能够更改背景和默认值(对于 TextBox
, ComboBox
等)。应该有一个选项可以将设计的屏幕保存在XML / XAML中,以用于动态UI创建。
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.
非常感谢任何关于如何处理这种情况的建议。
Any suggestions on how to approach this scenario are greatly appreciated.
推荐答案
p>我也在一个类似的项目,我们已经使用 Canvas
作为设计器表面;如CodeProject这篇文章中所做的那样 -
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.codeproject.com/KB/WPF/WPFDiagramDesigner_Part4.aspx
另一个基于此的项目可以在codeplex找到 -
One more project based on this can be found at codeplex-
这篇关于如何创建UI Designer实用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!