private void btnChangeContent_Click(object sender, RoutedEventArgs e) { var transCtrl = new TransitionControl(_transCtrl.ParentWindow); var screenOne = new ScreenOne(transCtrl); _transCtrl.ParentWindow.ChangeContent(screenOne); }
public void ChangeScreen(TransitionControl screen) { if (screen == null) { throw new ArgumentNullException("unable to navigate to next screen. A null refernce section occurred"); } this.CurrentScreen = screen; this.ParentWindow.ChangeContent(screen); }
public ScreenTwo(TransitionControl transitionControl) { InitializeComponent(); _transCtrl = transitionControl; }
public ScreenOne(TransitionControl transitionControl) { InitializeComponent(); _transitionControl = transitionControl; }