现在的位置: 首页 > 综合 > 正文

silverlight: solve the problem that the root visual is disabled after child window closed

2013年03月23日 ⁄ 综合 ⁄ 共 267字 ⁄ 字号 评论关闭

When we new an instance of silverlight child window and close the window, sometimes we encounter that the root visual is disabled. There are one way to solve this problem:

Add  Application.Current.RootVisual.SetValue(System.Windows.Controls.Control.IsEnabledProperty, true); to your OnClosed() menthod;

抱歉!评论已关闭.