Click here to Skip to main content
Licence CPOL
First Posted 30 Aug 2010
Views 19,463
Bookmarked 8 times

Generally How I describe MVVM in Presentations or to my Friends

By | 30 Aug 2010 | Technical Blog
MVVM described in a way which is much easier to understand and easy to recall
A Technical Blog article. View original blog here.[^]

MVVM, which is an abbreviated form of (M)odel-(V)iew-(V)iew(M)odel is not new to you all. But there are some people who don’t know about it. If you are a Core ASP.NET developer, you may know about MVC & MVP, you may also know about MVVM which is mainly used in WPF/Silverlight. For them, it is tough to remember its concept.

In general, in any of my discussions or presentations, I used to describe MVVM in a way which is much easier to understand and easy to recall. Hence I thought, why shouldn’t I share this with you? That’s why I'm writing this post. Read it. I hope that you will enjoy it a lot while reading it fully.

First see the below snapshot. Can anyone tell me what this is? Yes, that’s a car. Everyone knows about it. You may ask why I am showing you a Car here. I was supposed to discuss about MVVM. Hmmm… Don’t stop, just read it.

image

So, it’s a car. What else? It has an Engine, which actually moves the car. What else? The driver sits inside the car and drives it. Ok fine, what else? It runs with fuel.

Yeah!! That’s fine. So, what is the relation between the “Car” and the “MVVM” Framework? Want to know? Umm, this is just my example that I always use to give while explaining about MVVM.

So, think in this way. The car runs on the fuel, which is your data. We will better call it as Model. Hence, Model is the data that you present in your UI.

The car has a body which we can see from outside, nothing else is visible, neither the engine nor the fuel. Hence, we can say it as the View of the car.

Interesting? Ok, so what is the engine? Engine is the interior part of the car which is responsible for moving the car (i.e. the View) with the help of driver and fuel, where driver sends the event to the Engine to use the fuel (Model) to move. So, this is your ViewModel.

image

So, what have we learned here? The body of the Car (called as View) runs on Fuel (called as Model, i.e. Data) with the help of Engine (called as ViewModel). I think that you got the basic idea of MVVM here. Hope this will help you to recall the Model-View-ViewModel very easily.

I need your feedback on the explanation. Though it is a small explanation, a newbie can easily remember it.


License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

_ Kunal Chowdhury _

Software Developer

India India

Member

Follow on Twitter Follow on Twitter
Kunal Chowdhury is a Microsoft MVP (Most Valuable Professional) in Silverlight Technology, a Codeproject MVP & Mentor, DZone MVB (Most Valuable Blogger), Speaker in various Microsoft events, Author, passionate Blogger and a Software Engineer by profession.
 
He is currently working as a Software Engineer II in an MNC located at Pune, India. He has a very good skill over XAML, C#, Silverlight and WPF. He has a good working experience in Windows 7 application (including Multi-touch) development too.
 
He posts his findings in his technical blog. He also writes for SilverlightShow and Codeproject portal. Many of his articles were highlighted as "Article of the Day" in Microsoft sites.
 
He also has another website called Silverlight-Zone.com where he posts article links on Silverlight, Windows Phone 7 and XNA accumulated from various web sites to help the community grow on specified technologies.
 
You can reach him in his Blog : http://www.kunal-chowdhury.com
He is also available in Twitter : http://twitter.com/kunal2383

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralMy vote of 5 PinmemberPritesh Aryan21:09 27 Apr '11  
GeneralMy vote of 5 Pinmemberdivyang44828:32 11 Apr '11  
GeneralMy vote of 5 PinmemberMember 74748608:30 28 Sep '10  
GeneralOK, but why MVVM?! PinmemberGary Noter10:07 15 Sep '10  
GeneralMy vote of 4 PinmemberJaco van der Walt21:12 6 Sep '10  
GeneralRe: My vote of 4 PinmentorKunalChowdhury8:41 7 Sep '10  
GeneralMy vote of 3 PinmemberEbenRoux19:20 6 Sep '10  
GeneralRe: My vote of 3 PinmentorKunalChowdhury8:35 7 Sep '10  
GeneralMy vote of 1 PinmemberJames Hurburgh13:34 6 Sep '10  
AnswerRe: My vote of 1 PinmentorKunalChowdhury8:32 7 Sep '10  
GeneralMy vote of 5 PinmemberAbhinav S0:45 31 Aug '10  
GeneralRe: My vote of 5 PinmvpAbhijit Jana1:28 31 Aug '10  
AnswerRe: My vote of 5 PinmentorKunalChowdhury2:09 31 Aug '10  
GeneralRe: My vote of 5 PinmemberAbhinav S6:20 31 Aug '10  
GeneralRe: My vote of 5 PinmentorKunalChowdhury6:29 31 Aug '10  
GeneralMy vote of 5 PinmvpAbhijit Jana23:48 30 Aug '10  
GeneralRe: My vote of 5 PinmentorKunalChowdhury0:15 31 Aug '10  
GeneralMy vote of 4 Pinmembervenugopalm23:35 30 Aug '10  
GeneralRe: My vote of 4 PinmentorKunalChowdhury0:14 31 Aug '10  
GeneralMy vote of 5 Pinmemberdefwebserver19:52 30 Aug '10  
GeneralRe: My vote of 5 PinmentorKunalChowdhury22:37 30 Aug '10  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web03 | 2.5.120517.1 | Last Updated 30 Aug 2010
Article Copyright 2010 by _ Kunal Chowdhury _
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid