3

我正在创建一个 GlobalPage/FrameHoster,它将包含我的 AppBar,然后是一个 Frame 控件,它将托管我的所有应用程序页面。除了一些页面导航控件被应用栏隐藏之外,这一切都很好。如何显示 App Bar 但将其 ZIndex 设置为低于我的 hostFrame 的 ZIndex?

<Page.TopAppBar>
    <AppBar x:Name="globalAppBar" Padding="10,0,10,0" IsSticky="True" IsOpen="True" Background="Transparent" IsHoldingEnabled="True" BorderThickness="0" BorderBrush="Transparent" >
         <Grid>
             <banner:AppBannerBar/>
         </Grid>
    </AppBar>
</Page.TopAppBar>

<Grid>
      <Frame x:Name="hostFrame"/>
</Grid> 
4

1 回答 1

0

The AppBars are system driven and they overlay your entire app. I don't think you'll be able to hide them with controls/popups inside your app.

However, you could just close them when you don't want anything hidden on your screen.

于 2014-02-15T22:23:26.460 回答