Exemplo n.º 1
0
 private void Close()
 {
     if (_popup != null)
     {
         _popup.Content = null;
         _popup.Hide();
         _popup = null;
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Called when the pointer leaves a control with an attached tooltip.
        /// </summary>
        /// <param name="sender">The event sender.</param>
        /// <param name="e">The event args.</param>
        private static void ControlPointerLeave(object sender, PointerEventArgs e)
        {
            var control = (Control)sender;

            if (control == s_current)
            {
                if (s_popup != null && s_popup.IsVisible)
                {
                    s_popup.Hide();
                }

                s_show.OnNext(null);
            }
        }
Exemplo n.º 3
0
 public static void Close(this PopupRoot window) => window.Hide();