protected override void OnCreateControl() { base.OnCreateControl (); if (menu != null) { XplatUI.SetMenu(window.Handle, menu); } OnLoadInternal (EventArgs.Empty); // Send initial location OnLocationChanged(EventArgs.Empty); }