Visual Studio Project Template for Caliburn.Micro WP7
August 10, 2010 in Windows Phone 7
Two days ago, Rob Eisenberg released a sample of Caliburn.Micro for Windows Phone 7. I spent a few minutes today creating a Windows Phone 7 Caliburn.Micro project template for Visual Studio 2010 from that project. It should help you get started more quickly on your WP7 projects.
Download and copy the Caliburn.Micro.WP7.zip file to the following directory on your computer: \Documents\Visual Studio 2010\Templates\ProjectTemplates\Silverlight for Windows Phone
Start up Visual Studio and create a new project. You will see an option for Caliburn.Micro (WP7):
After the project is created, you will see the following project structure:
Fix the reference to Caliburn.Micro (download from CodePlex), set a breakpoint in the constructor of MainPageViewModel, and run the application. You will see that when navigation happens to MainPage, that MainPageViewModel is created.
Continue execution to view the app in the emulator:
I like Rob’s idea of doing View-first for pages and ViewModel-first for components on a Page. I have chosen the following naming: MyPage/MyPageViewModel (pages) and MyView/MyViewModel (user controls).
1 Comments
Leave a Reply
3 Trackbacks
Neudesic Blogs
on August 10, 2010Tweets that mention Visual Studio Project Template for Caliburn.Micro WP7 | SHAZAML! -- Topsy.com
on August 10, 2010Twitter Public Timeline reader for WP7 using Caliburn Micro « Sony Arouje Blog
on October 28, 2010
Visual Studio Project Template for Caliburn.Micro WP7…
Visual Studio Project Template for Caliburn.Micro WP7…
[...] This post was mentioned on Twitter by Alvin Ashcraft, Mark Tucker. Mark Tucker said: Create projects using the Caliburn.Micro Windows Phone 7 template: http://bit.ly/cD8kfa #wp7dev (thanks @eisenbergeffect) [...]
[...] To kick start with WP7 development using caliburn micro I suggest to download the template from shazaml.com. The template has the CM’s WP7 bootstrapping technique mentioned by Rob Eisenberg in his [...]
Thanks a lot, saved me a bit of time today