MVVM Exception Handling

后端 未结 3 1154
我寻月下人不归
我寻月下人不归 2021-02-04 14:22

I have a WPF Application that I have been trying to write in the MVVM style. If an Exception is thrown (like when a document is opened), I would like to display a MessageBox.

3条回答
  •  感情败类
    2021-02-04 15:21

    You might also like to just put an ErrorMessage string property on your ViewModel class that your View can bind to.

提交回复
热议问题