From 7fc6a8536a96bb7e5bf33edb5d5b8db1bfaf00fe Mon Sep 17 00:00:00 2001 From: Tig Kindel Date: Sat, 25 Feb 2023 07:42:33 +1300 Subject: [PATCH] restored Generic.cs --- UICatalog/Scenarios/Generic.cs | 29 ++++------------------------- 1 file changed, 4 insertions(+), 25 deletions(-) diff --git a/UICatalog/Scenarios/Generic.cs b/UICatalog/Scenarios/Generic.cs index bda3edb31..076ed7d92 100644 --- a/UICatalog/Scenarios/Generic.cs +++ b/UICatalog/Scenarios/Generic.cs @@ -27,34 +27,13 @@ namespace UICatalog.Scenarios { // With a Scenario, after UI Catalog calls `Scenario.Setup` it calls // `Scenario.Run` which calls `Application.Run`. // Example: - //var button = new Button ("Press me!") { - // AutoSize = false, - // X = Pos.Center (), - // Y = Pos.Center (), - //}; - //button.Clicked += () => MessageBox.Query (20, 7, "Hi", "Neat?", "Yes", "No"); - //Win.Add (button); - - Win.Visible = false; - - var label = new Label () { + var button = new Button ("Press me!") { + AutoSize = false, X = Pos.Center (), Y = Pos.Center (), - Border = new Border () { - BorderStyle = BorderStyle.Single, - Padding = new Thickness (2), - BorderThickness = new Thickness (2), - BorderBrush = Color.Red, - Background = Color.BrightGreen, - Effect3D = true, - Effect3DOffset = new Point (2, -3) - }, - ColorScheme = Colors.TopLevel, - Text = "This is a test" }; - label.Border.Child = label; - Application.Top.Add (label); - + button.Clicked += () => MessageBox.Query (20, 7, "Hi", "Neat?", "Yes", "No"); + Win.Add (button); } } } \ No newline at end of file