Example #1
0
        private void btnChangeContent_Click(object sender, RoutedEventArgs e)
        {
            var transCtrl = new TransitionControl(_transCtrl.ParentWindow);
            var screenOne = new ScreenOne(transCtrl);

            _transCtrl.ParentWindow.ChangeContent(screenOne);
        }
 public ScreenOne(TransitionControl transitionControl)
 {
     InitializeComponent();
     _transitionControl = transitionControl;
 }
Example #3
0
 public ScreenTwo(TransitionControl transitionControl)
 {
     InitializeComponent();
     _transCtrl = transitionControl;
 }
Example #4
0
 public void ChangeScreen(TransitionControl screen)
 {
     this.CurrentScreen = screen ?? throw new ArgumentNullException("Unable to navigate to next screen. A null reference section occurred");
     this.ParentWindow.ChangeContent(screen);
 }