views:

41

answers:

1

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;
    }
}

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.

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.

+3  A: 

XAML Power Toys can generate XAML from a model

screenshot

qntmfred
You win for WPF. Wish there was an answer for WinForms :-|
Pat