What is MVVM Light ?

Technology CommunityCategory: XamarinWhat is MVVM Light ?
VietMX Staff asked 3 years ago

MVVM Light is another Framework that allows the creation of Enterprise-Grade apps using the MVVM Architectural pattern on Xamarin. MVVM Light enables developers to create and develop  MVVM applications on a variety of platforms like Xamarin.Forms, Xamarin.Android, Xamarin.iOS, UWP, and WPF. It allows you to separate the View from Model and hence right more testable and extensible applications.  It is not in active development now. It does not support async commands.

A typical MVVM Light application is divided into the following parts:

  • View: It is a platform-specific user interface that is associated with the screen
  • View Model: IT exposes the data and the properties related to data
  • ViewModel Locator: It registers custom ViewModels.

MVVM Light advocates the use of a Messenger for loosely-coupled communication everywhere in the app, including data binding, dialogs, and navigation:

  • Supports two-way data binding
  • Supplies a DelegateCommand class for wiring up ViewModel commands.