日前使用SL4的ChildWindow做模态弹出框的时候发现了这样一个小BUG,就是关闭子窗口后主界面不可用。

解决方案:override OnClosing方法:加入

Application.Current.RootVisual.SetValue(Control.IsEnabledProperty, true);

 

相关文章: