工具生成一个类的GUI(的WinForms或WPF) [英] Tool to generate a GUI (WinForms or WPF) from a class

查看:212
本文介绍了工具生成一个类的GUI(的WinForms或WPF)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

说,我们已经有了一个类像

Say we've got a class like

public class Doer 
{
    public int Timeout {get;set;}
    public string DoIt(string input)
    {
        string toReturn;
        // Do something that involves a Timeout
        return toReturn;
    }
}

有没有办法,将创造原型该类窗体或控件的工具?图形用户界面可能有一个NumericUpDown控件与超时的标签和一个文本框输入和标有大一与调用的事件处理程序一个按钮分组框 Doer.DoIt 输入文本框的Text属性,并把在另一个文本框的响应。

Is there a tool that would create a Form or Control for prototyping this class? The GUI might have a NumericUpDown control with a label of "Timeout" and a GroupBox with a TextBox for "input" and a button labeled "DoIt" with an eventhandler that calls Doer.DoIt with the Text property of the input TextBox and puts the response in another TextBox.

推荐答案

XAML的电动玩具可以从模型生成XAML

XAML Power Toys can generate XAML from a model

屏幕截图

这篇关于工具生成一个类的GUI(的WinForms或WPF)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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