コード例 #1
0
 /// <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);
     }
 }
コード例 #2
0
 /// <summary>
 /// Closes this instance.
 /// </summary>
 private void Close()
 {
     if (popup != null)
     {
         popup.SetChild(null);
         popup.Dispose();
         popup = null;
     }
 }
コード例 #3
0
 private void Close()
 {
     if (_popup != null)
     {
         _popup.SetChild(null);
         _popup.Hide();
         _popup = null;
     }
 }
コード例 #4
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();
        }
コード例 #5
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();
        }