This project is read-only.


Feb 8, 2013 at 2:25 PM
Thanks for this little library.

I am trying to figure out, how to use this in a true MVVM fashion.
Having the OpenDialogView in my ViewModel class feels pretty wrong.
Is it possible to have only the OpenDialogViewModel in my ViewModel class?
Feb 14, 2013 at 2:07 PM
Edited Feb 14, 2013 at 2:29 PM
you are right. In MVVM the ViewModel doesn't know his corresponding View. What says MVVM about a View in another ViewModel? I don't know. But View first approach is commonly used. But basically you can also choose a ViewModel first approach. To do this you can use an MVVM framework that easily supports VM first, e.g. Or you have to write an own mechanism that wire-up your VM with your View. That could something like a View method with the VM as parameter. This method will then search and view the View. Another solution is that the ViewModel creates directly the view (usually through an Inversion of Control container). Maybe there are still other solutions.