C# - XAML - 在应用程序栏菜单项下的额外空间 [英] c# - XAML - extra space under menu items in app bar
问题描述
每当我在应用栏中添加菜单项,一个额外的线路或空间的菜单项下的未来。我不知道如何删除它。它确实扰乱好看很多。附上我已经添加了通过图像的菜单。 。请帮我摆脱额外的空间。
Whenever i added the menu items in app bar, an extra line or space is coming under the menu items. I don't know how to remove it. It really disturbs look a lot. herewith i have added that menu by image. Kindly, help me to get rid of that extra space.
我的XAML代码:
<phone:PhoneApplicationPage.ApplicationBar>
<shell:ApplicationBar Mode="Default" Opacity="1.0" IsMenuEnabled="True" IsVisible="True">
<shell:ApplicationBarIconButton IconUri="/Assets/folder.png" Text="about" Click="more1"/>
<shell:ApplicationBarIconButton IconUri="/Assets/next.png" Text="goto" Click="gotopage"/>
<shell:ApplicationBar.MenuItems>
<shell:ApplicationBarMenuItem Text="rate this app" Click="rateapp"/>
<shell:ApplicationBarMenuItem Text="like us" Click="like"/>
</shell:ApplicationBar.MenuItems>
</shell:ApplicationBar>
</phone:PhoneApplicationPage.ApplicationBar>
输出APP酒吧在上面的代码:
OUTPUT APP BAR BY ABOVE CODE:
推荐答案
据我所知,它的应用程序栏的默认行为有这个空当有2个或更少的菜单项。您可以通过添加另一个菜单项(甩出求助或查询有关美国或某事),让你有3个菜单项,或者创建自己的应用程序栏摆脱空间。第二条路线似乎是尽管这种小问题真是大材小用。
To my knowledge, it's the default behavior of the application bar to have this space when there are 2 or less menu items. You can get rid of the space by adding another menu item (throw in a help or about us or something) so that you have 3 menu items, or by creating your own application bar. The second route seems really overkill for such a small issue though.
这篇关于C# - XAML - 在应用程序栏菜单项下的额外空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!