BindableApplicationBar for Windows Phone – Now On NuGet

With some help from Shawn Oster – I had the BindableApplicationBar published on NuGet. Now there is no need to search for sources or assemblies on CodePlex if you need to quickly create an MVVM-friendly ApplicationBar. Just right-click on your project and select “Manage NuGet Packages…”

image

Then search for appbar, install it and voila! You can now use the BindableApplicationBar.

image

Refresher on using the BindableApplicationBar

Add an xml namespace declaration in your page element:

<phone:PhoneApplicationPage
    x:Class="PhoneApp2.MainPage"
    xmlns:bar="clr-namespace:BindableApplicationBar;assembly=BindableApplicationBar"

…then put something like this inside of your page XML element for an application bar with one command-bound icon button and one menu item:

<bar:Bindable.ApplicationBar>
    <bar:BindableApplicationBar>
        <bar:BindableApplicationBarButton
            IconUri="/Icons/Dark/appbar.add.rest.png"
            Text="{Binding IconButtonText}"
            Command="{Binding TestCommand}" />
        <bar:BindableApplicationBar.MenuItems>
            <bar:BindableApplicationBarMenuItem
                Text="Menu Item 1"
                Command="{Binding TestCommand}" />
        </bar:BindableApplicationBar.MenuItems>
    </bar:BindableApplicationBar>
</bar:Bindable.ApplicationBar>

Posts regarding Bindable ApplicationBar

  1. The quest for a Bindable ApplicationBar – Part 1
  2. The quest for a Bindable ApplicationBar – Part 2
  3. The quest for a Bindable ApplicationBar – Part 3
  4. BindableApplicationBar RC1 + Windows Phone Prism Application Template
  5. BindableApplicationBar for Windows Phone – Now On NuGet

About xyzzer

UX passionate, UI developer, specializing in Microsoft UI technologies from Win API and GDI through WinForms, DirectX to Surface/WPF/Silverlight & WinRT. Developer at Vectoform by day. Blogger and curator at http//winrtdaily.com by night. My words are mine and mine only.
This entry was posted in Computers and Internet and tagged , , , , , , , . Bookmark the permalink.

5 Responses to BindableApplicationBar for Windows Phone – Now On NuGet

  1. Pingback: BindableApplicationBar RC1 + Windows Phone Prism Application Template | Xyzzer's Dev Blog

  2. Pingback: The quest for a Bindable ApplicationBar – Part 1 | Xyzzer's Dev Blog

  3. Pingback: The quest for a Bindable ApplicationBar – Part 2 | Xyzzer's Dev Blog

  4. IuriiO says:

    Awesome! Got it working with MVVM Light. Great work, thank you.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s