获取当前活动窗体

PickPatientReminderTableDialog dialog = new PickPatientReminderTableDialog();
dialog.Owner = Application.Current.Windows.Cast<Window>().SingleOrDefault(x => x.IsActive);

posted @ 2014-01-23 18:54  quietwalk  阅读(383)  评论(0)    收藏  举报