views:

24

answers:

1

i have read the other question here on StackOverflow. I understand how to create messages between ViewModels/Objects. But I dont get how can i actually display a dialog. Can I see some code samples implementing this?

A: 

using a mediator or messenger to communicate between viewmodels has nothing to do with the mvvm dialog problem. here is the way i show dialogs.

blindmeis
so i just use a service to open dialogs eg. SaveFileDialog, OpenFileDialog or MessageBoxes?
jiewmeng
correct :) the link i posted is for dialogs in general. for dialogs like SaveFileDialog, OpenFileDialog or MessageBoxes i use concrete services like WpfMessageboxService and so on. take a look at the cinch project http://cinch.codeplex.com/, there i get some really good stuff for mvvm.
blindmeis