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:
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
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
- The quest for a Bindable ApplicationBar – Part 1
- The quest for a Bindable ApplicationBar – Part 2
- The quest for a Bindable ApplicationBar – Part 3
- BindableApplicationBar RC1 + Windows Phone Prism Application Template
- BindableApplicationBar for Windows Phone – Now On NuGet
[…] BindableApplicationBar RC1 + Windows Phone Prism Application Template […]
[…] BindableApplicationBar RC1 + Windows Phone Prism Application Template […]
[…] BindableApplicationBar RC1 + Windows Phone Prism Application Template […]
The best implementation of bindable ApplicationBar I’ve ever seen. Thanks, man!
Glad you liked it 🙂
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.
This is fixed in the source code now. Please download the updated source and try it out.
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.
Everything works fine, thanks…
Great! Let me know if you have any more problems, comments or suggestions.
[…] BindableApplicationBar RC1 + Windows Phone Prism Application Template […]