Dialogs (Real ones)

Posted by Richard W on Stack Overflow See other posts from Stack Overflow or by Richard W
Published on 2010-04-28T00:10:36Z Indexed on 2010/04/28 0:13 UTC
Read the original article Hit count: 650

Filed under:

Having tried a number of different solutions I keep coming back to this. I need a Window.ShowDialog, using the ViewModelLocator class as a factory via a UnityContainer.

Basically I have a View(and ViewModel) which on a button press on the the view needs to create a dialog (taking a couple of parameters in its constructor) that will process some logic and eventally return a result to the caller (along with the results of all the logic it computed).

Maybe I'm wrong for stilll looking at this from a Windows Forms perspective, but I know exactly what I want to do and I want to ideally do it using WPF and MVVM. I'm trying to make this work for a project, and ultimately don't want to have to go back to vanilla WPF in order to make it work.

© Stack Overflow or respective owner

Related posts about mvvm-light