MVVM in VB.Net - Lesson 2: Creating the MVVM Structure In Your Project


The structure is the key to creating an application. If you organize your project, you can easily update code, or repair any issues. I like to imaging it like an outline; keeping the classes that are similar in their own folder, or namespace, or group.

Setting Up

If you want to create your own project follow these steps. If you have already downloaded the template, you can skip to the Core section. Otherwise follow these steps.

  1. Open MSVS and create a new WPF Application project. Name the project MVVM Sample.
  2. Click OK.
  3. Add a Core folder.
  4. Add a Model folder.
  5. Add a ViewModel folder
  6. Add a View folder.

The project should look similar to the image below.

More by this Author

Click to Rate This Article