Windows phone 7 带有WP中文本的应用栏按钮

Windows phone 7 带有WP中文本的应用栏按钮,windows-phone-7,expression-blend,application-bar,Windows Phone 7,Expression Blend,Application Bar,当用户单击“…”时,我有一些带有按钮和菜单项的应用程序栏。不管怎样,我意识到一些图标的含义可能很难一目了然 有没有办法在图标下方显示文字?当然,当用户单击“…”时,它们是可见的,但也有菜单项,我不想要它 有人这么做吗 您只需使用shell:ApplicationBar并设置文本属性即可 <shell:ApplicationBar x:Name="dialogsPageAppbar"> <shell:ApplicationBarIconButton IconUr

当用户单击“…”时,我有一些带有按钮和菜单项的应用程序栏。不管怎样,我意识到一些图标的含义可能很难一目了然

有没有办法在图标下方显示文字?当然,当用户单击“…”时,它们是可见的,但也有菜单项,我不想要它


有人这么做吗

您只需使用shell:ApplicationBar并设置文本属性即可

<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>

您不能使用标准的
应用程序条来执行此操作。正如我所说,最重要的是隐藏文本

另外,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行为。我认为这不是一个好主意。

这是用文本制作按钮的正常方法,但当用户单击“…”时,文本就会出现。在默认视图中,您只有一个没有文本的metro图标。如果你不需要定位你的应用程序,我希望看到下面带有文本的图标作为默认视图-用文本绘制一个图标。不管怎样,默认行为是@Antonizikov,它不适合里面,甚至它会,它很可能是不可解的。违反既定UI行为的原因是什么?它所做的是用户合理期望的。好吧,有时候图标对用户来说可能没有明确的意义。我同意你的观点,但很多时候我从非wp人员那里得到了关于这一点的问题,他们有点惊讶,“…”会向他们展示更多。对我来说这也是正常的事情。谢谢你的建议:)