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
Advertisements
Tagged , , , , , , ,

5 thoughts on “BindableApplicationBar for Windows Phone – Now On NuGet

  1. […] Pingback: BindableApplicationBar for Windows Phone – Now On NuGet | Xyzzer's Dev Blog […]

  2. […] Pingback: BindableApplicationBar for Windows Phone – Now On NuGet | Xyzzer's Dev Blog […]

  3. 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: