阅读背景:

Mainwindow关闭时如何关闭所有窗口

来源:互联网 

I am working on WPF. There is Mainwindow which opens as application starts. There are two buttons within this window. Each open a new window. e.g There are Add and update buttons. Add button opens a Add-Item window on its click event call and similarly update opens it's window "Update-Item". If i close Mainwindow these two windows "Add-Item" and "Update-Item" remains open. I want that if i close Mainwindow, these other two windows should also close with it.I am working on WPF. There is Mainwindow which




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

分享到: