/// <summary> /// Windows the manager add shadow hint changed. /// </summary> /// <param name="host">The host.</param> /// <param name="hint">if set to <c>true</c> [hint].</param> private void WindowManagerAddShadowHintChanged(IPopupHost host, bool hint) { if (host is PopupRoot pr) { pr.PlatformImpl.SetWindowManagerAddShadowHint(hint); } }
/// <summary> /// Closes this instance. /// </summary> private void Close() { if (popup != null) { popup.SetChild(null); popup.Dispose(); popup = null; } }
private void Close() { if (_popup != null) { _popup.SetChild(null); _popup.Hide(); _popup = null; } }
private void Open(Control control) { Close(); _popup = OverlayPopupHost.CreatePopupHost(control, null); _popup.SetChild(this); ((ISetLogicalParent)_popup).SetParent(control); _popup.ConfigurePosition(control, GetPlacement(control), new Point(GetHorizontalOffset(control), GetVerticalOffset(control))); _popup.Show(); }
/// <summary> /// Opens the specified control. /// </summary> /// <param name="control">The control.</param> private void Open(Control control) { if (!ToolTipService.TooltipsEnabled()) { return; } Close(); _popup = OverlayPopupHost.CreatePopupHost(control, null); _popup.SetChild(this); ((ISetLogicalParent)_popup).SetParent(control); _popup.ConfigurePosition(control, GetPlacement(control), new Point(GetHorizontalOffset(control), GetVerticalOffset(control))); _popup.Show(); }