tags:

views:

529

answers:

2

Recently there have been a lot of move towards MVVM framework due to the nature of WPF development. I am making a pretty small application, which might grow a little over time. I am curious to know, what sized application should benefit from a MVVM implementation. For example .. has to have 15 user screens to be beneficial or something like that.

+11  A: 

MVVM is useful even if you have only one screen. It doesn't really depend on the size of the application, it's mainly intended to separate your UI from the logic and to help with DataBinding. Also, you'll get used to it more quickly, and you'll see it just fits with WPF perfectly no matter how big your app is.

Botz3000
+1  A: 

In my opinion MVVM doesn't complicate an app, it just organizes code into separate areas. Of course there is a learning curve on how to accomplish this. In WPF there are a dozen ways to accomplish one task, so if you are unfamiliar with best practices and how WPF works it can seem very difficult. I believe to really harness MVVM you need to understand WPF. I believe the best book for that is this one. It starts at the beginning and constrasts winforms with WPF and then goes through every control type and helps you understand their role. You don't get to databinding until the middle of the book. It's a long read, but if you actually want to harness WPF and utilize MVVM I believe it's essential.

Also this sample MVVM app article is good start to understand MVVM.

Jose
Thanks I am fluent in WPF, but not in MVVM. It seemed useful and had presented an solution to the problems unique to wpf, so I was curious to if it applies to even a small app.
Shafqat Ahmed