mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-31 02:08:03 +01:00
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 ();
|
|
}
|
|
}
|