Files
Terminal.Gui/UICatalog/Scenarios/Generic.cs
BDisp 239191cde0 Fixes #1434. Regenerating the docs. (#1528)
* Fixes #1434. Regenerating the docs.

* Fixing warnings on docs regeneration and improving.
2021-12-18 05:33:40 -08:00

18 lines
517 B
C#

using Terminal.Gui;
namespace UICatalog.Scenarios {
[ScenarioMetadata (Name: "Generic", Description: "Generic sample - A template for creating new Scenarios")]
[ScenarioCategory ("Controls")]
public class MyScenario : Scenario {
public override void Setup ()
{
// Put your scenario code here, e.g.
var button = new Button ("Press me!") {
X = Pos.Center (),
Y = Pos.Center (),
};
button.Clicked += () => MessageBox.Query (20, 7, "Hi", "Neat?", "Yes", "No");
Win.Add (button);
}
}
}