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