如何使用Webview在UWP中加载网页

时间:2022-04-12 05:49:11

如何使用Webview在UWP中加载网页// I want my Application to point to a particular page of a site and display it on webview, I tried this but not working

//我希望我的应用程序指向某个站点的特定页面并在webview上显示它,我试过这个但是没有用

string site = "https://google.com";
myweb.Navigate(new Uri(site));

1 个解决方案

#1


0  

try the following:

尝试以下方法:

string site = @"https://google.com";
myweb.Navigate(new Uri(site));

or

myweb.Navigate(new Uri(@"https://www.google.com"));

#1


0  

try the following:

尝试以下方法:

string site = @"https://google.com";
myweb.Navigate(new Uri(site));

or

myweb.Navigate(new Uri(@"https://www.google.com"));