我正在寻找一个工具,它可以从一个类生成一个用户界面。 让我举个例子。从类创建UI
这个类有一些伪属性:
class BussinessModel
{
[UiReadOnly]
[UiSingleLine]
public int Id { get; set; }
[UiSingleLine]
public string Tile { get; set; }
[UiMultiLine]
public string Description { get; set; }
}
可以生成一个UI(XAML的UI)是这样的:
编辑: 我fogot提约我想要“准备使用”绑定,可以使用当给定的类是视图模型(MVVM)
有什么工具可以做这样的事情(只需点击一下)?
请查看[PropertyGrid](http://msdn.microsoft.com/en-us/library/system.windows.forms.propertygrid.aspx)... – 2012-07-05 18:30:47