private async void CloseApmPopup() { await ApmPopup.ClearInternetCacheAsync(); ApmPopup.Visibility = Visibility.Collapsed; ApmPopup.NavigateToString(""); }
private void OpenApmPopup(OpenApmPopupMessage message) { popupMessage = message; PopupThickness = new Thickness(0, message.Top, 0, 0); ApmPopup.Height = message.Height; ApmPopup.Width = message.Width; ApmPopup.Navigate(new Uri(Constants.APM_POPUP_URL)); }
private void ApmPopup_OnLoadCompleted(object sender, NavigationEventArgs e) { try { var settings = new JsonSerializerSettings(); settings.ContractResolver = new LowercaseContractResolver(); var dataForJS = JsonConvert.SerializeObject(popupMessage.Data, Formatting.Indented, settings).Replace("\r\n", ""); if (checkDoubleRequestPopup != dataForJS) { ApmPopup.Visibility = Visibility.Visible; checkDoubleRequestPopup = dataForJS; ApmPopup.InvokeScript("fillFormBY", dataForJS); } } catch (Exception ex) { } }