Error window show modal in MVVM WPF

Posted by bluebit on Stack Overflow See other posts from Stack Overflow or by bluebit
Published on 2009-08-24T09:28:03Z Indexed on 2010/06/12 7:22 UTC
Read the original article Hit count: 708

Filed under:
|
|
|

Hi guys

I have implemented my MVVM error message as a message dialog that subscribes to error messages via a mediator class, so that other viewmodels can notify it if any errors occur.

When an error occurs, I set the visibility attribute in the viewmodel to Visible, to display the error window. This is all bound in the Error window from the viewmodel.

However, this window is NOT modal! I need to show it as a dialog and not just set the visibility to true - is there any kind of binding I can do, even if I have to extend the functionality of the window? I'd rather not break MVVM if I can avoid it.

Thanks!

© Stack Overflow or respective owner

Related posts about wpf

Related posts about mvvm