首页 新闻 会员 周边

wp8开发 怎样在Page页面中添加菜单项,而不是在快捷shell:ApplicationBar添加呢?

0
悬赏园豆:20 [待解决问题]
<shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="Menu Item1" IsEnabled="True"></shell:ApplicationBarMenuItem>
                <shell:ApplicationBarMenuItem Text="Menu Item2" IsEnabled="True"></shell:ApplicationBarMenuItem>
            </shell:ApplicationBar.MenuItems>

 

怎样在Page页面中添加菜单项,而不是在快捷shell:ApplicationBar添加呢?

是这样吗?

<!--ContentPanel - 在此处放置其他内容-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <shell:ApplicationBar x:Key="GlobalAppMenuBar" Opacity="1" IsVisible="True" IsMenuEnabled="True">
                <shell:ApplicationBar.MenuItems>
                    <shell:ApplicationBarMenuItem Text="Menu Item1" IsEnabled="True"></shell:ApplicationBarMenuItem>
                    <shell:ApplicationBarMenuItem Text="Menu Item2" IsEnabled="True"></shell:ApplicationBarMenuItem>
                </shell:ApplicationBar.MenuItems>
            </shell:ApplicationBar>
        </Grid>

不对啊,这个应该怎么添加呢?

或者说,我想实现设置功能,里面的每个设置项都是一个类似的菜单项,点一下就会跳转到某个页面,或展开下面显示一些选项;

问题补充:

如果有类似的控件也可以,但最好是原生的WP控件,不是外部引用的;

之美的主页 之美 | 初学一级 | 园豆:184
提问于:2014-07-29 10:50
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册