【问题标题】:how to create a global app bar in windows 8 app? [duplicate]如何在 Windows 8 应用程序中创建全局应用程序栏? [复制]
【发布时间】:2013-08-21 23:24:53
【问题描述】:

我的应用程序包含许多网络视图,我想创建一个全局应用程序栏,出现在应用程序的每个网络视图中。我没有任何代码。 请帮忙!!

【问题讨论】:

标签: c# xaml windows-8


【解决方案1】:

为主页制作一个应用栏

然后,在 xaml 页面之间切换时,执行 this.Content = new Page().Content; //change page to the page you want it to switch to.

要切换回第一页,首先将其添加到初始化事件中。

UIElement main;
main = this.Content;

【讨论】:

    猜你喜欢
    • 2013-03-10
    • 2011-06-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多