Microsoft Universal App Webview' 源不显示 url
Microsoft Universal App Webview' source does not show url
我是通用应用程序开发的新手。也许这是一个很简单的问题。
我尝试像 iframe 一样使用 webview,但它没有显示我的 url.It 已成功来源 url 和 google 等。这是我的代码:
<Page
x:Class="App1.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:App1"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<WebView Source="http://appstest.local/Survey" x:Name="WebView" Visibility="Visible" HorizontalAlignment="Left" Height="720" VerticalAlignment="Top" Width="1280"/>
</Grid>
</Page>
是关于代理设置的吗?谁能给我一些建议吗?
只是简单地用一个基本的 MVC web 项目对其进行了测试,当使用本地主机地址作为 Url 源时它运行良好。
Source="http://appstest.local/Survey"
从您的 Url,您可以为您的网站使用私人主机,对于这种情况,您需要在项目的清单文件中添加 Private Networks (Client & Server)
功能:
The privateNetworkClientServer capability provides inbound and outbound access to home and work networks through the firewall. This capability is typically used for games that communicate across the local area network (LAN), and for apps that share data across a variety of local devices.
我是通用应用程序开发的新手。也许这是一个很简单的问题。 我尝试像 iframe 一样使用 webview,但它没有显示我的 url.It 已成功来源 url 和 google 等。这是我的代码:
<Page
x:Class="App1.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:App1"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<WebView Source="http://appstest.local/Survey" x:Name="WebView" Visibility="Visible" HorizontalAlignment="Left" Height="720" VerticalAlignment="Top" Width="1280"/>
</Grid>
</Page>
是关于代理设置的吗?谁能给我一些建议吗?
只是简单地用一个基本的 MVC web 项目对其进行了测试,当使用本地主机地址作为 Url 源时它运行良好。
Source="http://appstest.local/Survey"
从您的 Url,您可以为您的网站使用私人主机,对于这种情况,您需要在项目的清单文件中添加 Private Networks (Client & Server)
功能:
The privateNetworkClientServer capability provides inbound and outbound access to home and work networks through the firewall. This capability is typically used for games that communicate across the local area network (LAN), and for apps that share data across a variety of local devices.