private void Close() { if (_popup != null) { _popup.Content = null; _popup.Hide(); _popup = null; } }
/// <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); } }
public static void Close(this PopupRoot window) => window.Hide();