mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
* touching publish.yml * Moved Examples into ./Examples * Moved Benchmarks into ./Tests * Moved Benchmarks into ./Tests * Moved UICatalog into ./Examples * Moved UICatalog into ./Examples 2 * Moved tests into ./Tests * Updated nuget
29 lines
608 B
C#
29 lines
608 B
C#
using Terminal.Gui;
|
|
|
|
namespace UICatalog.Scenarios;
|
|
|
|
[ScenarioMetadata ("Date Picker", "Demonstrates how to use DatePicker class")]
|
|
[ScenarioCategory ("Controls")]
|
|
[ScenarioCategory ("DateTime")]
|
|
public class DatePickers : Scenario
|
|
{
|
|
public override void Main ()
|
|
{
|
|
Application.Init ();
|
|
|
|
Window app = new ()
|
|
{
|
|
Title = GetQuitKeyAndName ()
|
|
};
|
|
|
|
var datePicker = new DatePicker { Y = Pos.Center (), X = Pos.Center () };
|
|
|
|
app.Add (datePicker);
|
|
|
|
Application.Run (app);
|
|
app.Dispose ();
|
|
|
|
Application.Shutdown ();
|
|
}
|
|
}
|