Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF: Why should I use an existing MVVM framework instead of writing my own?

Tags:

c#

mvvm

wpf

I was wondering what benefits an MVVM framework could give me (such as mvvm light, prism, etc). If you can give me bullet points stating from most important to least important. I'm just trying to understand if I should use an MVVM framework or just hand code my own.

like image 541
Shai UI Avatar asked Feb 07 '11 23:02

Shai UI


People also ask

What framework for MVVM should I use?

WPF Application Framework (WAF)

Should I use MVVM for WPF?

The Windows Presentation Framework (WPF) takes full advantage of the Model-View-ViewModel (MVVM) pattern. Though it is possible to create WPF applications without using the MVVM pattern, a little investment in learning can make building WPF applications much simpler.

Do I need a framework for MVVM?

MVVM pattern is not framework and doesn't require any framework to be used.

What are the disadvantages of MVVM?

Disadvantages of MVVM Model:This can confuse the developer and make the development or debugging process complicated. When it comes to an Android environment, the user is restricted with only two ways to work with View. Moreover, they can either use Data Binding or any other View method.


1 Answers

You can get started with MVVM without a framework, and you can build up your own base code over time. It might help you learn the pattern better.

Once you understand it, you will better appreciate the power that a framework like Caliburn Micro gives you. The frameworks get all that base template code out of the way, of course, but they also can add advanced binding, action, and composition features.

I just listened to a podcast interview with the author of Caliburn Micro. Maybe it will help you:

Herding Code 104: Rob Eisenberg on Caliburn Micro

like image 139
sourcenouveau Avatar answered Sep 20 '22 20:09

sourcenouveau