|
@@ -14,7 +14,7 @@ namespace UICatalog.Scenarios {
|
|
X = Pos.Center (),
|
|
X = Pos.Center (),
|
|
Y = 1,
|
|
Y = 1,
|
|
Width = Dim.Percent (75),
|
|
Width = Dim.Percent (75),
|
|
- Height = 12
|
|
|
|
|
|
+ Height = Dim.AutoSize ()
|
|
};
|
|
};
|
|
Win.Add (frame);
|
|
Win.Add (frame);
|
|
|
|
|
|
@@ -145,24 +145,7 @@ namespace UICatalog.Scenarios {
|
|
Y = Pos.Top (label) + 3
|
|
Y = Pos.Top (label) + 3
|
|
};
|
|
};
|
|
frame.Add (ckbWrapMessage);
|
|
frame.Add (ckbWrapMessage);
|
|
-
|
|
|
|
- frame.ForceValidatePosDim = true;
|
|
|
|
- void Top_Loaded (object sender, EventArgs args)
|
|
|
|
- {
|
|
|
|
- frame.Height =
|
|
|
|
- widthEdit.Frame.Height +
|
|
|
|
- heightEdit.Frame.Height +
|
|
|
|
- titleEdit.Frame.Height +
|
|
|
|
- messageEdit.Frame.Height +
|
|
|
|
- numButtonsEdit.Frame.Height +
|
|
|
|
- defaultButtonEdit.Frame.Height +
|
|
|
|
- styleRadioGroup.Frame.Height +
|
|
|
|
- 2 +
|
|
|
|
- ckbWrapMessage.Frame.Height;
|
|
|
|
- Application.Top.Loaded -= Top_Loaded;
|
|
|
|
- }
|
|
|
|
- //Application.Top.Loaded += Top_Loaded;
|
|
|
|
-
|
|
|
|
|
|
+
|
|
label = new Label ("Button Pressed:") {
|
|
label = new Label ("Button Pressed:") {
|
|
X = Pos.Center (),
|
|
X = Pos.Center (),
|
|
Y = Pos.Bottom (frame) + 4,
|
|
Y = Pos.Bottom (frame) + 4,
|