/// <summary> /// Hides an existing popup /// </summary> /// <param name="popupContent">a child or root element of the popup content</param> /// <param name="Host_Id">Identifier of the host control</param> public static async Task HidePopupControlAsync(FrameworkElement popupContent, string Host_Id = null) { var id = PopupControl.GetIdentifier(popupContent); await HidePopupControlAsync(id, Host_Id); }
/// <summary> /// Hides an existing popup /// </summary> /// <param name="popupContent">a child or root element of the popup content</param> /// <param name="Host_Id">Identifier of the host control</param> public static void HidePopupControl(FrameworkElement popupContent, string Host_Id = null) { var id = PopupControl.GetIdentifier(popupContent); HidePopupControl(id, Host_Id); }