Skip to content

Commit 61d9d4c

Browse files
committed
Generic demos
1 parent 0831b16 commit 61d9d4c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

UICatalog/Scenarios/Generic.cs

+9-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ public override void Main ()
1818
Title = GetQuitKeyAndName (),
1919
};
2020

21+
FrameView frame = new ()
22+
{
23+
Height = Dim.Fill (),
24+
Width = Dim.Fill (),
25+
Title = "Frame"
26+
};
27+
appWindow.Add (frame);
28+
2129
var button = new Button { Id = "button", X = Pos.Center (), Y = 1, Text = "_Press me!" };
2230

2331
button.Accepting += (s, e) =>
@@ -27,7 +35,7 @@ public override void Main ()
2735
MessageBox.ErrorQuery ("Error", "You pressed the button!", "_Ok");
2836
};
2937

30-
appWindow.Add (button);
38+
frame.Add (button);
3139

3240
// Run - Start the application.
3341
Application.Run (appWindow);

0 commit comments

Comments
 (0)