In these steps, we will make use of the following features of MVVM Light: Step 1: Open Visual Studio and create a WPF Application and name it ‘WPF_MVVMLight_CRUD’.To this project, add the MVVM Light Libraries using Nu Get Package as discussed in Installation section.Luckily there are some nice MVVM frameworks to choose from like Prism, Cailburn, n Route and Galasoft’s MVVM Light Toolkit.We will be exploring how to implement MVVM in WPF applications using the MVVM Light Toolkit by Laurent Bugnion.A ‘concern’ can be considered as an aspect of software functionality.
Currently the templates are only provided for Visual Studio 20 for the Pro, Premium and Ultimate editions. To do so, open an existing WPF project in Visual Studio In the following steps, we will make use of MVVM Light for implementing a WPF application that performs some basic database operations.
The idea is to make sure each concern has a single, well-defined purpose and to find a balanced way to separate these features and concepts into different modules.
This ultimately reduces duplicate code and keeps the modules decoupled from each other, making our application maintainable and manageable.
This article shows how to get started with MVVM development for WPF applications.
Separation of Concerns (decoupling) or So C is a principle that promotes best practices for software architecture.