protected override void OnResize(EventArgs e) { base.OnResize(e); try { Canvas.SetSize(RenderSize.Width, RenderSize.Height); Canvas.FindChildByName("buttons").Position(Pos.CenterH); } catch (Exception ex) { // SDL2 backend eats exceptions. // we have to manually crash. Program.Crash(ex, true); Close(); } }
protected override void OnResize(EventArgs e) { base.OnResize(e); Canvas.SetSize(RenderSize.Width, RenderSize.Height); Canvas.FindChildByName("buttons").Position(Pos.CenterH); }