protected override void OnResize(EventArgs e) { base.OnResize(e); if (IsHandleCreated && !_isPanelResizeSuppressed) { HexgridPanel.SetScrollLimits(MapBoard); } }
protected override void OnResizeEnd(EventArgs e) { base.OnResizeEnd(e); _isPanelResizeSuppressed = false; HexgridPanel.SetScrollLimits(MapBoard); }