protected override void OnResize (EventArgs e) { base.OnResize (e); if (Parent != null && Parent.IsHandleCreated) XplatUI.InvalidateNC (Parent.Handle); // Should probably make this into one loop SizeScrollBars (); ArrangeWindows (); }