Example #1
0
 public void Handle(NavigateToMessage message)
 {
     if (message.NavigateToEnum == NavigateToEnum.ThirdChildView)
     {
         ActivateItem(_thirdChildViewModel);
     }
 }
Example #2
0
        public void Handle(PersonModel message)
        {
            Person = message;
            NavigateToMessage navigateToMessage = new NavigateToMessage(NavigateToEnum.AnotherChildView);

            _eventAggregator.PublishOnUIThread(navigateToMessage);
        }
Example #3
0
        //Old version.

        ////public void Handle(NavigateToAnotherView message)
        ////{
        ////    ActivateItem(_anotherChildViewModel);
        ////}

        //Universal way to navigate.
        public void Handle(NavigateToMessage message)
        {
            switch (message.NavigateToEnum)
            {
            case NavigateToEnum.AnotherChildView:
                ActivateItem(AnotherChildViewModel);
                break;

                //case NavigateToEnum.ThirdChildView:
                //    ActivateItem(_thirdChild);
                //    break;
            }
        }
 void OnNavigateTo(NavigateToMessage obj)
 {
     SupportFragmentManager.PopBackStack(null, (int)PopBackStackFlags.None);
     ViewModel.SelectFirstView();
 }
Example #5
0
        public void LoadPageThree()
        {
            NavigateToMessage navigateTo = new NavigateToMessage(NavigateToEnum.ThirdChildView);

            _eventAggregator.PublishOnUIThread(navigateTo);
        }
Example #6
0
        private void NavigateTo(NavigateToMessage msg)
        {
            var mainPage = (MainPage)Window.Current.Content;

            mainPage.MainFrame.Navigate(typeof(InventoryPage));
        }