Skip to content

Navigation

Don Kackman edited this page Jan 30, 2016 · 1 revision

Pages are not hosted directly in MainPage.Xaml. MainPage hosts a NavControl which manages the navigation bar as well as the Frame that hosts all other application pages. This keeps the NavBar persistent throughout the app lifetime.

The MainViewModel has two observable collections which define what buttons show up on the NavBar:

  • MainNavItems are the main application pages and the ones that are on the upper part of the NavBar
  • SecondaryNavItems are at the lower part of the NavBar and typically have things like Settings pages, Login buttons etc.

The NavBar is bound to these to collections so in order to setup, add or remove items to the NavBar add them to those collections in MainViewModel.

Clone this wiki locally