0

当用户单击“...”时,我有带有一些按钮和菜单项的应用程序栏。无论如何,我意识到有些图标的含义乍一看很难理解。

有什么方法可以在图标下方显示带有文字的图标吗?当然,当用户单击“...”时它们是可见的,但对于菜单项也是可见的,我不想要它。

有人这样做吗?

4

2 回答 2

1

您可以简单地使用 shell:ApplicationBar 并设置 Text 属性

<shell:ApplicationBar x:Name="dialogsPageAppbar">
        <shell:ApplicationBarIconButton  IconUri="/images/Icons/appbar.add.rest.png" Text="create"/>
        <shell:ApplicationBarIconButton  IconUri="/images/Icons/appbar.refresh.rest.png" Text="refresh"/>
        <shell:ApplicationBarIconButton  IconUri="/images/Icons/appbar.feature.search.rest.png" Text="search"/>
        <shell:ApplicationBar.MenuItems>
            <shell:ApplicationBarMenuItem Text="settings" />
        </shell:ApplicationBar.MenuItems>
    </shell:ApplicationBar>
于 2012-09-13T09:30:46.307 回答
1

你不能用标准来做到这一点ApplicationBar。正如我所说,默认行为是隐藏文本。

另外WP7用户有一种特殊的用户体验,所以如果他不能理解你的图标的含义,他会按“...”来阅读文字。

但是您可以在某些场景中模拟 appbar:

<Border Background="{some gray color from phone resources}">
 <StackPannel Orientation="Horisontal">
  <Button Content={Binding TextB} Command="{Binging CommandA}" 
                          Style="{your appbar-like template}"/>
  <Button Content={Binding TextB}  Command="{Binging CommandB}" 
                          Style="{your appbar-like template}"/>
</StackPannel>
</Border>

将其放在页面底部。但是要准备好花费大量时间来模拟标准的 appbar 行为。我不认为这是一个好主意。

于 2012-09-13T19:59:28.037 回答