MVVM, View Model (VM) acts as a glue and controller between View and Model. It also interacts with those libraries and services that help in CRUD (Create, Retrieve, Update, and Delete) operations on the Model.
In this recipe we will implement a View Model for our Model class,
User. The View Model will also contain logic to pass data to and receive data from View. It will also interact with the data repository we implemented in our previous recipe.
WpfMVVMproject. Name it
View Modelfolder. Name it
IDataRepository. Name it ...