Load or close childwindow and MessageBox.Show(..)

Topics: Prism v4 - Silverlight 4, Prism v4 - WPF 4
Nov 4, 2010 at 7:13 AM

In Prism 4.0 Drop 10


      1.How to load a new childwindow in viewmodel? and close childwindow?

      2.How to send messagebox in viewmodel?



P.S english is poor.

Nov 4, 2010 at 7:08 PM


In Prism the Stock Trader Reference Implementation Application provides you an example about how to display a ChildWindow. It uses Navigation for displaying a dialog in a region, and there is no limitation for achieving this from a ViewModel.

If you need to close a dialog, you could use Commands and from your view model get the view and remove it from the region.

I think that you can find the following forum threads interesting:

Hope this helps.

Fernando Antivero