Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的应用程序包含许多网络视图,我想在应用程序的每个网络视图中创建一个全局应用程序栏。我没有任何代码。请帮忙 !!
为主页制作一个应用栏
然后,在 xaml 页面之间切换时,执行 this.Content = new Page().Content; //change page to the page you want it to switch to.
this.Content = new Page().Content; //change page to the page you want it to switch to.
要切换回第一页,首先将其添加到初始化事件中。
UIElement main; main = this.Content;