阅读背景:

WPF MVVM取消Window.Closing事件

来源:互联网 

In WPF application together with MVVMLight Toolkit, I would like to see your opinion, what is the best way to implement if I need to Cancel the Window Close event. In Window.Closing event I can set the e.Cancel = true, which prevents closing the form. To identify if the Close is allowed, or should be prevented is in the ViewModel context.In WPF application together with MVVMLight Tool




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: