Example #1
0
        protected virtual async Task OnShellNavigatingIn(string sender, ShellNavigatingEventArgs args)
        {
            ShellNavigatingEventArgs = args;

            if (this.GetType() != typeof(AppShellViewModel) && this.GetType() != typeof(MainViewModel))
            {
                CurrentViewModelType = this.GetType();
            }

            AppInitialiserService.Initialise(this);
        }
Example #2
0
        protected virtual async Task OnShellNavigated(string sender, ShellNavigatedEventArgs args)
        {
            ShellNavigatedEventArgs = args;

            if (AppNavigationService.NavigationDirection == NavigationDirection.Backwards)
            {
                AppInitialiserService.Initialise(this);
            }

            OnNavigatedComplete?.Invoke();

            // reset navigation direction
            AppNavigationService.NavigationDirection = NavigationDirection.Forward;
        }