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

            _eventAggregator.PublishOnUIThread(navigateToMessage);
        }
Пример #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;
            }
        }
Пример #4
0
 void OnNavigateTo(NavigateToMessage obj)
 {
     SupportFragmentManager.PopBackStack(null, (int)PopBackStackFlags.None);
     ViewModel.SelectFirstView();
 }
Пример #5
0
        public void LoadPageThree()
        {
            NavigateToMessage navigateTo = new NavigateToMessage(NavigateToEnum.ThirdChildView);

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

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