예제 #1
0
 private void Close()
 {
     if (_popup != null)
     {
         _popup.SetChild(null);
         _popup.Dispose();
         _popup = null;
     }
 }
예제 #2
0
        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();
        }
예제 #3
0
        /// <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();
        }