BindableApplicationBar RC1 + Windows Phone Prism Application Template

Today marks the RC1 release of the BindableApplicationBar. I have spent some time today to do some StyleCop and documentation cleanup and it seems ready. You can grab a zip file with the binary directly from here.

Another part of what I have been working on today is a Windows Phone application template. I have spent too many times working on boilerplate code and cleaning up the default Windows Phone Application template and decided to create something that will get me up to speed faster every time I want to create a phone app. It is called Windows Phone Prism Application and is available as a Visual Studio project template here.

Just download the zip file, unpack and run install.cmd or simply copy the template zip file to your “%USERPROFILE%\Documents\Visual Studio 2010\Templates\ProjectTemplates” folder. You can now create a new Windows Phone application based on this template simply by creating a new project and choosing this template:

image

The template has contents as listed below and features:

  • Prism and BindableApplicationBar libraries
  • AssemblyAttributes class that simplifies access to information about your application
  • PageNavigation class that encapsulates all page navigation URIs and methods in one file
  • LocalizedResources class that is used in your XAML files to localize all strings
  • ViewModelLocator class for exposing your view models in XAML
  • Button and MenuItem view models for use with the BindableApplicationBar
  • Page view models
  • About page with some basic details about your application
  • All StyleCop clean with only a few rules disabled

image

After creating the project you need to replace “Default Company” with the name of your company. I probably should have used $registeredorganization$ template parameter, but since my copy of Visual Studio is not registered to an organization – it remains empty which makes it harder to fix it in code later, than just doing a Ctrl+Shift+R.

Until today – every time I wanted to create an MVVM phone app I had to spend lots of time doing the boilerplate work. Hopefully this will let me start working on actual features of phone applications sooner.

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

11 thoughts on “BindableApplicationBar RC1 + Windows Phone Prism Application Template

  1. […] BindableApplicationBar RC1 + Windows Phone Prism Application Template […]

  2. […] BindableApplicationBar RC1 + Windows Phone Prism Application Template […]

  3. […] BindableApplicationBar RC1 + Windows Phone Prism Application Template […]

  4. Ivan Eryshov says:

    The best implementation of bindable ApplicationBar I’ve ever seen. Thanks, man!

  5. Anonymous says:

    BindableApplicationBar is something what I need in my application. But I must admit that there is something wrong with your implementation. There is a bug connected with Back Button and NavigationService.GoBack() method. I descibed error on: http://bindableapplicationb.codeplex.com/workitem/245
    Long story short: when you navigating forth and back you see strange behavior. When you navigate for the first time, everything looks fine. Second time, icons doesn’t show. In the third attempt BindableApplicationBar throws Exception connected with number of icons in ApplicationBar.

  6. xyzzer says:

    Thanks for the feedback. I will check it tonight if I can find the time and try to fix it if I can reproduce your problem.

  7. Anonymous says:

    Everything works fine, thanks…

  8. […] BindableApplicationBar RC1 + Windows Phone Prism Application Template […]

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: