protected override void SetVisibleCore(bool visible) { base.SetVisibleCore(visible); if (visible) { XplatUI.SetTopmost(this.Handle, true); } }
protected override void OnCreateControl() { base.OnCreateControl(); XplatUI.SetTopmost(this.window.Handle, true); // Workaround for missing support of WM_MOUSEACTIVATE that causes ToolTip to eat mouse clicks for controls beneath. #if MONOMAC ((MonoMac.AppKit.NSView)MonoMac.ObjCRuntime.Runtime.GetNSObject(this.Handle)).Window.IgnoresMouseEvents = true; #elif XAMARINMAC ((AppKit.NSView)ObjCRuntime.Runtime.GetNSObject(this.Handle)).Window.IgnoresMouseEvents = true; #endif }
private void ToolTipWindow_VisibleChanged(object sender, EventArgs e) { Control control = (Control)sender; if (control.is_visible) { XplatUI.SetTopmost(control.window.Handle, true); } else { XplatUI.SetTopmost(control.window.Handle, false); } }
protected override void OnCreateControl() { base.OnCreateControl(); XplatUI.SetTopmost(this.window.Handle, true); }