且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何判断 WPF 窗口是否已关闭?

更新时间:2023-11-25 16:51:46

根据 这个对话在MSDN WPF论坛上(见上一篇),你可以检查IsLoaded是否为false,这意味着窗口是合格的"" 用于卸载其内容.我希望这对你有用!

According to this conversation on the MSDN WPF forums (see the last post), you can check to see if the IsLoaded is false, which means that the window is "eligible" for unloading its content. I hope that works for you!