0

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?

Jiew Meng
  • 84,767
  • 185
  • 495
  • 805

1 Answers1

0

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.

Community
  • 1
  • 1
blindmeis
  • 22,175
  • 7
  • 55
  • 74
  • so i just use a service to open dialogs eg. SaveFileDialog, OpenFileDialog or MessageBoxes? – Jiew Meng Oct 07 '10 at 03:38
  • 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 Oct 07 '10 at 06:46