|
@@ -143,11 +143,13 @@ namespace UICatalog {
|
|
|
};
|
|
|
scrollView.Add (verticalRuler);
|
|
|
|
|
|
- Win.LayoutComplete += (a) => {
|
|
|
+ void Top_Loaded() {
|
|
|
horizontalRuler.Text = rule.Repeat ((int)Math.Ceiling ((double)(horizontalRuler.Bounds.Width) / (double)rule.Length)) [0..(horizontalRuler.Bounds.Width)] +
|
|
|
"\n" + "| ".Repeat ((int)Math.Ceiling ((double)(horizontalRuler.Bounds.Width) / (double)rule.Length)) [0..(horizontalRuler.Bounds.Width)];
|
|
|
verticalRuler.Text = vrule.Repeat ((int)Math.Ceiling ((double)(verticalRuler.Bounds.Height * 2) / (double)rule.Length)) [0..(verticalRuler.Bounds.Height * 2)];
|
|
|
+ Top.Loaded -= Top_Loaded;
|
|
|
};
|
|
|
+ Top.Loaded += Top_Loaded;
|
|
|
|
|
|
var pressMeButton = new Button ("Press me!") {
|
|
|
X = 3,
|