Refactored onload/onresize events to use event vs. Action<T>

This commit is contained in:
Charlie Kindel
2020-05-18 23:00:54 -06:00
committed by BDisp
parent b4eb00e760
commit 8de1702042
3 changed files with 45 additions and 32 deletions

View File

@@ -604,7 +604,7 @@ static class Demo {
var bottom2 = new Label ("This should go on the bottom of another top-level!");
top.Add (bottom2);
Application.OnLoad = () => {
Application.Loaded += (sender, e) => {
bottom.X = win.X;
bottom.Y = Pos.Bottom (win) - Pos.Top (win) - margin;
bottom2.X = Pos.Left (win);