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) { } }