Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

MVVM VIewModel and view relationship question

$
0
0

can anyone confirm the following for me.

From what i keep reading ive noticed this "The viewmodel knows nothing about the view".  This means it doesn't have a dependency on the view.  Is the purpose of this so that the viewmodel can be ported to other applications using MVVM and REUSE the same viewmodel, but use a different looking view if they wanted to.

For Example: i have WP8 application and later i might wanna port it to windows 8( to be used on tablets and PC's ).  Could i easily move my models and viewmodels over, and simply create and hook up the view that works best for those devices?


Summary: Is the ViewModel reuseable like the model for other projects


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>