Click here to Skip to main content
13,353,124 members (69,308 online)
Click here to Skip to main content
Add your own
alternative version


1 bookmarked
Posted 22 Aug 2014

MVVM Light Toolkit and Windows Phone : Bindable AppBar

, 22 Aug 2014
Rate this:
Please Sign up or sign in to vote.
This tip/trick shows you how to add bindable AppBar with MVVM Light Toolkit in Windows Phone 8


A big problem when choosing to develop with MVVM in Windows Phone is that the native Application Bar is not bindable, so we can't get/set attributes or commands.

So, the following code snippets will show you how to add a bindable AppBar in Windows phone 8 using MVVM Light Toolkit.


  • Windows Phone
  • MVVM
  • Nuget Packages

Using the code

Thanks to the CodePlex open source project "Bindable Application Bar", we can get the control that will help us achieving our goal.

P.S : There are many solutions like the Bindable AppBar Appliation project, but I choose this one beacause I think it's the easiest one.

Let's add some code!

1. Adding Nuget Package

We can add a reference to that project via its Nuget Package.


2. Adding Reference :

Then, we add the reference in our View.



3. Adding AppBar :

Finally, we add the AppBar control. We can use it the same way as we use the native AppBar.

    <bar:BindableApplicationBar >
        <bar:BindableApplicationBarButton IconUri="/Assets/AppBar/add.png"

                                          Command="{Binding ButtonClick}"

                                          Text="Button" />
            <bar:BindableApplicationBarMenuItem Command="{Binding MenuItemClick}"

                                                Text="Menu Item" />


That's it! I hope it was helpful.


This is the first version of this tip/trick. If you have any problem/question, feel free to comment.

You're welcome. Enjoy!


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


About the Author

Mdimagh Firas
Student ISAMM
Tunisia Tunisia
No Biography provided

You may also be interested in...

Comments and Discussions

-- There are no messages in this forum --
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.180111.1 | Last Updated 22 Aug 2014
Article Copyright 2014 by Mdimagh Firas
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid