关闭 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

posted @ 2016-08-09 15:58  kevin_cnblogs  阅读(4281)  评论(0编辑  收藏  举报