Introduced
MVVM's presence defines the framework of the program for the WPF Silverlight program, MVVM solves the coupling problem between the business layer and the UI layer, and more benefits are not discussed.
In WP mobile phone, many projects are also used MVVM for the framework, the more common tool set is MVVM Light Toolkit. It is used in many known WP projects, and some of the MVVM architecture tools that you implement are also based on this. And what we're going to talk about today is Caliburn Micro, the framework for MVVM architecture.
First, compare the MVVM Light Toolkit and Caliburn Micro:
Both are superior to do not do too much analysis, personal point of view, although CM learning cost is high, but it provides more convenient to develop the function, is the team's good choice.
Starting with Hello World
Let's start with the simplest program to see the basic use of the CM framework
After we create a new WP8 program, we can add Caliburn Micro through NuGet in references:
The next thing we're going to do is to remove the App.xaml.cs (yes, yes, remove, later) App.xaml.cs looks like this.