WebView控件在Uno Platform项目中的Wasm中是否正常工作?

问题描述

我创建了Uno基本项目,将WebView控件添加到MainPage.xaml并输入了Source。页面在UWP和Android中正常显示,但在Wasm中看不到任何内容https://platform.uno/docs/articles/implemented/windows-ui-xaml-controls-webview.html页说可以在Wasm中使用。有什么问题吗?

我运行下面的代码,仅显示文本Hello World。

<!--MainPage.xaml-->
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
    <Grid.RowDeFinitions>
        <RowDeFinition Height="auto"/>
        <RowDeFinition/>
    </Grid.RowDeFinitions>
    <TextBlock Text="Hello World"/>
    <WebView Grid.Row="1" Source="https://docs.microsoft.com/en-us/windows/uwp/design/controls-and-patterns/web-view"/>
</Grid>

环境

  • Uno ProjectTemplate:Uno.ProjectTemplates.Dotnet :: 3.0.17
  • 创建应用:dotnet新的unoapp
  • Windows:Windows 10版本2004
  • Visual Studio 2019版本16.7.3
    • cpu:x86
    • IIS Express
  • 浏览器:Microsoft Edge版本87.0.637.0(正式版本)金丝雀(64位)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)