Могу ли я заставить мою страницу отображаться в режиме совместимости с Internet Explorer 8 в веб-представлении приложения UWP для Windows 8.1?
Сегодня мое веб-приложение получает запрос через POST и отображает только содержимое, совместимое с ним.с Internet Explorer 8: (
Код веб-просмотра:
<WebView x:Name="MyWebView" Source="" />
Код C # UWP:
string url = "https://www.exampleapp.net/app/";
string postBody = string.Format("keyvalue=param1&keyvalue2={0}", someValue);
StringContent postBodyEncoded = new StringContent(postBody, Encoding.UTF8, "application/x-www-form-urlencoded");
HttpClientHandler handler = new HttpClientHandler();
handler.AllowAutoRedirect = true;
HttpClient client = new HttpClient(handler);
HttpResponseMessage res = await client.PostAsync(url, postBodyContent);
var content = await res.Content.ReadAsStringAsync();
MyWebView.NavigateToString(content);
Моя страница:
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<title>My Web Page</title>
<script src="https://www.exampleapp.net/app/script.js"></script>
</head>
<body>
<p>Dynamic Content.</p>
</body>
</html>