I had a question about the VM responsibilities when it comes to pop-ups. When an app is popping a message box or some kind of dialog (with MVVM), the two options that we have are:
- putting UI (ShowDialog()) code in VM which seems bad
- have VM send some kind of event that UI can subscribe to and display a dialog in the code behind (but we are striving for zero code behind :) )
How do you guys tackle this case? Any input is really appreciated!