【发布时间】:2018-02-24 12:10:15
【问题描述】:
我有 3 个 WebView 每个 PivotItem 在 RelativePanel 中,就像这样:
<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>
我的问题是未显示 WebView 内容,我不明白为什么。在使用RelativePanel 之前,我使用了Grid,效果很好。
你能解释为什么它不起作用吗?
感谢您的帮助。
【问题讨论】:
标签: c# xaml webview uwp relativepanel