Click here to Skip to main content
15,886,664 members
Articles / Desktop Programming / XAML
Tip/Trick

Top and Bottom Appbar in XAML

Rate me:
Please Sign up or sign in to vote.
4.96/5 (12 votes)
14 Jul 2014CPOL 21K   359   12   5
Top and Bottom Appbar in XAML

Introduction

This tip shows you how to use app bars to show navigation, commands, and tools that can be hidden away when they aren't needed. You can put an app bar at the top of the page, at the bottom of the page, or both.

  1. Create a new blank App name AppBar:

    Image 1

  2. Right click on Common Folder and add new existing item Add the Style.xaml:

    Image 2

  3. Browse your XAML File and add it your Common Folder:

    Image 3

  4. Add this file as Resource Dictionary in App.xaml:

    Image 4

  5. Add two basic pages in Your App:

    Image 5

    Image 6

  6. Create Your First Top AppBar:

    Image 7

  7. For add style, choose style from properties in which choose local resource and any one style.

    Image 8

  8. Create your Bottom AppBar it has only one button.

    Image 9

  9. It’s a click event of button.

    Image 10

  10. Output of your App TopAppBar and BottomAppBar.

    Image 11

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralMy vote of 4 Pin
cotbot19-Jul-14 22:02
cotbot19-Jul-14 22:02 
GeneralMy vote of 5 Pin
jamicore16-Jul-14 12:08
jamicore16-Jul-14 12:08 
AnswerMy vote of 5 Pin
Christian Amado16-Jul-14 11:04
professionalChristian Amado16-Jul-14 11:04 
Excellent!
--
Christian Amado
Software Engineer | MCPD: Windows Phone Developer | MCTS: Silverlight Developer

Please mark as answer, if helped you.

GeneralMy vote of 5 Pin
Christian Amado16-Jul-14 11:04
professionalChristian Amado16-Jul-14 11:04 
GeneralMy vote of 5 Pin
Lydia Gabriella16-Jul-14 10:41
Lydia Gabriella16-Jul-14 10:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.