mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Demos TimeField - and proves it's not ready for use
This commit is contained in:
29
UICatalog/Scenarios/TimeAndDate.cs
Normal file
29
UICatalog/Scenarios/TimeAndDate.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using Terminal.Gui;
|
||||
|
||||
namespace UICatalog {
|
||||
[ScenarioMetadata (Name: "Time And Date", Description: "Illustrates TimeField and time & date handling")]
|
||||
[ScenarioCategory ("Controls")]
|
||||
class TimeAndDate : Scenario {
|
||||
public override void Setup ()
|
||||
{
|
||||
// NOTE: The TimeField control is not ready for prime-time.
|
||||
|
||||
Win.Add (new TimeField (0, 0, DateTime.Now, isShort: false) {
|
||||
// BUGBUG: TimeField does not support Computed Layout
|
||||
//X = Pos.Center (),
|
||||
//Y = Pos.Center () - 1,
|
||||
X = 10,
|
||||
Y = 2,
|
||||
});
|
||||
|
||||
Win.Add (new TimeField (0, 2, DateTime.Now, isShort: true) {
|
||||
// BUGBUG: TimeField does not support Computed Layout
|
||||
//X = Pos.Center (),
|
||||
//Y = Pos.Center () + 1,
|
||||
X = 10,
|
||||
Y = 3,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user