public NavigationBase(IViewFactory viewFactory, INavigationStack navigationStack)
        {
            if (viewFactory == null)
                throw new ArgumentNullException(nameof(viewFactory));

            if (navigationStack == null)
                throw new ArgumentNullException(nameof(navigationStack));

            _viewFactory = viewFactory;
            this.NavigationStack = navigationStack;

            _navigationContext = new NavigationContext(this);

            navigationStack.NavigatedTo += navigationStack_NavigatedTo;
            navigationStack.NavigatingFrom += navigationStack_NavigatingFrom;
            navigationStack.PageDisposed += navigationStack_PageDisposed;
            navigationStack.PropertyChanged += navigationStack_PropertyChanged;
        }
Example #2
0
        // *** Constructors ***

        public NavigationBase(IViewFactory viewFactory)
        {
            this.viewFactory = viewFactory;

            this.navigationContext = new NavigationContext(this);
        }