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.
在我的应用程序中,应用程序栏、其按钮及其事件处理程序在我的应用程序的多个页面中是一致的。是否可以在 App.xaml.* 文件中定义和初始化应用程序栏,以便它被定义一次,而不是在我的应用程序的每个页面中?
是的,您可以在单个页面中托管应用栏,然后让该页面托管并管理其他页面的导航。微软的例子非常简单。
分享应用栏