Quantcast
Channel: patterns & practices: Prism
Viewing all articles
Browse latest Browse all 1878

New Post: How do you display MessageBox from Business Logic without breaking MVVM?

$
0
0
Hi,

Based on my understanding of your application, a correct way to display message boxes from your Model could be:
  1. Create an event in your Model to alert the ViewModel when a situation that requires user interaction arises.
  2. In your ViewModel, use InteractionRequest<T> in order to handle the display of the message box.
You can find more the information about how to implement InteractionRequest<T> here:
Hope this helps,

Federico Martinez
http://blogs.southworks.net/fmartinez

Viewing all articles
Browse latest Browse all 1878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>