1.

Why We Need To Use Model-view-viewmodel(mvvm) Pattern?

Answer»

The Model-View-ViewModel pattern can be used on all XAML platforms. Its intent is to provide a clean separation of concerns between the user INTERFACE controls and their logic.

Benefits:

  • During the development process, developers and designers can work more independently and concurrently on their components. The designers can concentrate on the view, and if they are using Expression BLEND, they can easily generate sample DATA to work with, while the developers can work on the view model and model components.
  • The developers can create unit TESTS for the view model and the model without using the view. The unit tests for the view model can exercise exactly the same functionality as used by the view.
  • It is easy to redesign the UI of the application without touching the code because the view is implemented entirely in XAML. A new version of the view should work with the existing view model.
  • If there is an existing implementation of the model that encapsulates existing business logic, it may be difficult or risky to CHANGE. In this scenario, the view model acts as an adapter for the model classes and enables you to avoid making any major changes to the model code.

The Model-View-ViewModel pattern can be used on all XAML platforms. Its intent is to provide a clean separation of concerns between the user interface controls and their logic.

Benefits:



Discussion

No Comment Found