关闭 Window 之后,无法设置 Visibility,也无法调用 Show、ShowDialogor 或 WindowInteropHelper.EnsureHandle。
参考网址:
1、WPF Tips: Window.ShowDialog()方法:Cannot set Visibility or call Show, ShowDialog, or WindowInteropHelp
http://blog.csdn.net/yapingxin/article/details/12209205
2、同样的疑问,在StackOverflow上的讨论如下:
《WPF: Cannot reuse window after it has been closed》
http://stackoverflow.com/questions/3568233/wpf-cannot-reuse-window-after-it-has-been-closed