获取当前活动窗体

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

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