【问题标题】:Navigation bars with thumbnails in Windows 8Windows 8 中带有缩略图的导航栏
【发布时间】:2013-05-11 03:23:39
【问题描述】:

Navigation Guidelines 确实提到我们可以在导航栏(顶部应用栏)中包含按钮的缩略图。我已经搜索了示例,但没有找到。 我创建了一个基本的顶部应用栏。

有人可以帮我吗?

【问题讨论】:

    标签: c# xaml windows-8 navigation appbar


    【解决方案1】:

    带有缩略图的应用栏不需要任何特殊代码。检查下面给定的代码。您可以在Grid 中添加任何内容。

    <Page.TopAppBar>
        <AppBar Height="180" Background="Tan">
            <StackPanel Orientation="Horizontal">
                <Grid Height="160" Width="200" Background="Red" Margin="10"/>
                <Grid Height="160" Width="200" Background="Green" Margin="10"/>
                <Grid Height="160" Width="200" Background="Yellow" Margin="10"/>
                <Grid Height="160" Width="200" Background="Blue" Margin="10"/>
            </StackPanel>
        </AppBar>
    </Page.TopAppBar>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-11-16
      • 2015-06-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-04-27
      相关资源
      最近更新 更多