C# Interview Questions:-What is MVVM ( Model view view model) Design pattern ?
Shivprasad Koirala
Model View ViewModel is a software architectural pattern, which we use to achieve a scale-able loosely coupled, maintainable code base. Due to these properties This architecture is preferred for developing WPF applications. Model in this related to the data Object class, View is related to the UI & Viewmodel is the binding code for these two. Viewmodel should be a representation of the View & we use Binding to Pass values from View to VM.
Answers This is a good c# interview questions which is asked around design pattern. MVVM is a UI design pattern. The main use of this pattern to remove UI cluttered code like bindings , synchronization etc. In this pattern we create a extra class called as view model or model which acts as a bridge between model and view. The view sends the actions and data to the model view class who in turns sends the data to model. Any changes in the model is replicated or informed to the UI using the INotifyPropertyChanged interface. Regards, View my 21 important C# Interview Questions and Answers