public void NextPage(UserControl page, String title) { BasicPage wrapper = new BasicPage(); wrapper.setTitle(title); wrapper.setPossibleGoBack(false); wrapper.PageContent.Content = page; pageTransitionControl.NextPage(wrapper); }
/// <summary> /// Change the page on the screen. Works like this : /// - MainWindow uses a BasicPage that contains already basic GUI /// - The page in argument is actually a UserControl, it will be placed /// in the pageTransitionControl of the BasicPage /// </summary> public void NextPage(UserControl page) { BasicPage wrapper = new BasicPage(); wrapper.PageContent.Content = page; pageTransitionControl.NextPage(wrapper); }