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.
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.
- Open MSVS and create a new WPF Application project. Name the project MVVM Sample.
- Click OK.
- Add a Core folder.
- Add a Model folder.
- Add a ViewModel folder
- Add a View folder.
The project should look similar to the image below.
More by this Author
Models are the data layer of an MVVM application. The models are used to store data in objects (classes) where it can be serialized for transmission to a remote location, or it can be formatted to be stored in a...
The core of the MVVM design contains abstract base classes that will be used throughout your application. The core will always contain the ObserverableObject. This class will implement the INotifyPropertyChanged...