如何在windows phone app8.1中将普通按钮菜单项设置为AppBarButton?
下面是我的示例按钮代码如何在windows phone app8.1中将普通按钮菜单项设置为AppBarButton?,button,windows-phone-8,windows-phone-8.1,Button,Windows Phone 8,Windows Phone 8.1,下面是我的示例按钮代码 <Button VerticalAlignment="Bottom" HorizontalAlignment="Right" Height="97" BorderThickness="0" Margin="331,0,-40,-62" > <StackPanel> <Image Source="Images/ic_na
<Button VerticalAlignment="Bottom" HorizontalAlignment="Right" Height="97" BorderThickness="0" Margin="331,0,-40,-62" >
<StackPanel>
<Image Source="Images/ic_navigation_drawer.png" Stretch="Fill" Width="59" Height="39" />
</StackPanel>
<Button.Flyout>
<MenuFlyout>
<MenuFlyoutItem x:Name="reloadcash" Text="Reloadcash" Click="reloadcash_Click" />
<MenuFlyoutItem x:Name="prevoiusorders" Text="Previous orders" Click="prevoiusorders_Click"/>
<MenuFlyoutItem x:Name="profile" Text="profile" Click="profile_Click"/>
<MenuFlyoutItem x:Name="changepassword" Text="changepassword" Click="changepassword_Click"/>
<MenuFlyoutItem x:Name="Contacts" Text="Contacts" Click="Contacts_Click"/>
<MenuFlyoutItem x:Name="busorderhistory" Text="Busorderhistory" Click="busorderhistory_Click"></MenuFlyoutItem>
</MenuFlyout>
</Button.Flyout>
</Button>
现在我想将上面的菜单设置为将项目输出到AppBarButton中
<AppBarButton Icon="OpenPane" Label="menu">
<AppBarButton.Flyout>
<MenuFlyout>
<MenuFlyoutItem x:Name="reloadcash" Text="Reloadcash" Click="reloadcash_Click" />
<MenuFlyoutItem x:Name="prevoiusorders" Text="Previous orders" Click="prevoiusorders_Click"/>
<MenuFlyoutItem x:Name="profile" Text="profile" Click="profile_Click"/>
<MenuFlyoutItem x:Name="changepassword" Text="changepassword" Click="changepassword_Click"/>
<MenuFlyoutItem x:Name="Contacts" Text="Contacts" Click="Contacts_Click"/>
<MenuFlyoutItem x:Name="busorderhistory" Text="Busorderhistory" Click="busorderhistory_Click"/>
</MenuFlyout>
</AppBarButton.Flyout>
</AppBarButton>
每当我单击AppBarbutton时,所有菜单项都会显示出来。
如何显示AppBarbutton中的所有菜单项。
如何将s与if like按钮弹出按钮相同添加AppBarButton和AppBarButton内的弹出按钮
<AppBarButton Icon="OpenPane" Label="menu">
<AppBarButton.Flyout>
<MenuFlyout>
<MenuFlyoutItem x:Name="reloadcash" Text="Reloadcash" Click="reloadcash_Click" />
<MenuFlyoutItem x:Name="prevoiusorders" Text="Previous orders" Click="prevoiusorders_Click"/>
<MenuFlyoutItem x:Name="profile" Text="profile" Click="profile_Click"/>
<MenuFlyoutItem x:Name="changepassword" Text="changepassword" Click="changepassword_Click"/>
<MenuFlyoutItem x:Name="Contacts" Text="Contacts" Click="Contacts_Click"/>
<MenuFlyoutItem x:Name="busorderhistory" Text="Busorderhistory" Click="busorderhistory_Click"/>
</MenuFlyout>
</AppBarButton.Flyout>
</AppBarButton>
这个很好用