Demonstrates how to create a navigation bar using the WinJS.UI.NavBar control. Specifically, this sample covers:
- Creating a NavBar with NavBarCommands added declaratively
- Creating a NavBar with NavBarCommands added using template and data
- Creating a NavBar with heterogenous content
- Creating a NavBar with vertical layout for smaller screen sizes
Related topics
Operating system requirements
| Client | |
|---|---|
| Server |
Build the sample
- Start Visual Studio 2013 and select File > Open > Project/Solution.
- Go to the directory in which you unzipped the sample. Go to the directory named for the sample, and double-click the Visual Studio 2013 Solution (.sln) file.
- Press F7 or use Build > Build Solution to build the sample.
Run the sample
To debug the app and then run it, press F5 or use Debug > Start Debugging. To run the app without debugging, press Ctrl+F5 or use Debug > Start Without Debugging.