![]() Public class MainViewModel : ViewModelBase A typical MainViewModel Class looks as under using GalaSoft.MvvmLight This class inherits from ViewModelBase abstract class which is the base class for the ViewModel classes in the MVVM pattern. This class contains properties that the main View can data bind to. ![]() ![]() ![]() This will add a ViewModel folder containing the MainViewModel.cs and the ViewModelLocator.cs file. Then from the Nuget Package Manager, execute the below command PM >Install-Package MvvmLight Open VS 2015 and create a WPF application. In this article we will get our self introduce to this framework by building a simple calculator application. It was created by Laurent Bugnion as a lightweight MVVM framework. The MVVM Light framework is a set of components that helps to create WPF applications in Model-View-ViewModel (MVVM) pattern.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |