.net - 从类生成 GUI(WinForms 或 WPF)的工具

标签 .net wpf winforms

假设我们有一个类

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

是否有工具可以创建表单或控件来制作此类原型(prototype)? GUI 可能有一个带有“Timeout”标签的 NumericUpDown 控件和一个带有用于“输入”的 TextBox 的 GroupBox,以及一个带有调用 Doer.DoIt 的事件处理程序的标记为“DoIt”的按钮。带有 input 的 Text 属性TextBox 并将响应放入另一个 TextBox。

GUI with 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.

最佳答案

关于.net - 从类生成 GUI(WinForms 或 WPF)的工具,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2511545/

相关文章:

.net - 使用 WPF 实现 WinForms?

c# - WPF 中的命名命令

c# - 插入 Ms Access 数据库时出错(未指定错误\r\n 对象无效或不再设置)

c# - 如何绑定(bind)两个 DataGrid 之间的行高?

c# - 在c#中检测点击脱离控件

c# - 如何以最快的方式在 TreeView 中添加节点?

c# - 如何从我的 C# 代码进入 SQL Server 存储过程?

c# - 在 GTK# Image Widget 中显示动画 GIF

c# - Magento Web 服务错误

.net - 从后台线程更新BindingList <>?