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))); WindowManagerAddShadowHintChanged(_popup, false); _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(); }