Files
Terminal.Gui/Examples/UICatalog/Scenarios/DatePickers.cs
Tig 7fe6fd9453 Fixes #4046 - Moves examples into ./Examples and fixes ./Tests (#4047)
* 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
2025-05-29 14:08:47 -06:00

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