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):

image

After the project is created, you will see the following project structure:

image

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:

image

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

Visual Studio Project Template for Caliburn.Micro WP7

1 Comments

    1. Visual Studio Project Template for Caliburn.Micro WP7…

      Visual Studio Project Template for Caliburn.Micro WP7…

    2. [...] 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) [...]

    3. [...] 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 [...]

    4. barney says:

      Thanks a lot, saved me a bit of time today

Leave a Reply