我想在页面的 TopAppBar 中添加一个 adunit。
<Page.TopAppBar>
<AppBar IsOpen="True">
<UI:AdControl
AutoRefreshIntervalInSeconds="60"
ApplicationId="be1500d6-9ca7-4a0b-a479-0db279d71e14"
AdUnitId="11191335"
HorizontalAlignment="Center"
IsAutoRefreshEnabled="True"
VerticalAlignment="Top"
Width="320"
Height="50" IsAutoCollapseEnabled="True"
/>
</AppBar>
</Page.TopAppBar>
这编译并运行没有错误,但将其添加到我的代码后,Frame.Navigate 到此页面返回一个错误值。如何更正它以使导航成功?如果这不是正确的方法,那么我怎样才能让我的广告始终保持在页面顶部,即使在滚动时也是如此。