0
我每次3 WebView
在PivotItem
一个RelativePanel
一样,里面:UWP的WebView不显示网页
<RelativePanel Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Pivot Name="pivot"
RelativePanel.AlignTopWithPanel="True"
RelativePanel.AlignLeftWithPanel="True"
RelativePanel.AlignRightWithPanel="True">
<PivotItem Header="Slack LiveTile">
<WebView Name="webView_001" />
</PivotItem>
<PivotItem Header="Slack RDV Tech">
<WebView Name="webView_002" />
</PivotItem>
<PivotItem Header="WhatsApp">
<WebView Name="webView_003" />
</PivotItem>
</Pivot>
<CommandBar
RelativePanel.AlignBottomWithPanel="True"
RelativePanel.AlignLeftWithPanel="True"
RelativePanel.AlignRightWithPanel="True" />
</RelativePanel>
我的问题是,视图内容不显示,我不明白为什么。在使用RelativePanel
之前,我使用了Grid
,它运行良好。
你能解释为什么它不起作用吗?
谢谢你的帮助。
谢谢!我已经添加了'RelativePanel.Above =“commandBar”'以伸展到'CommandBar'的顶部。 –