WPF在page页面获取窗口对象

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

            if (window != null)
                window.PageContext.Source = new Uri("./ArchivesManage/ArchivesReturn.xaml", UriKind.Relative);
原文地址:https://www.cnblogs.com/tangchun/p/12889420.html