WPF在page页面获取窗口对象

 var window = (MainWindow)Window.GetWindow(this);

            if (window != null)
                window.PageContext.Source = new Uri("./ArchivesManage/ArchivesReturn.xaml", UriKind.Relative);

 

posted @ 2020-05-14 16:14  _York  阅读(1836)  评论(0编辑  收藏  举报