public void Handle(NavigateToMessage message) { if (message.NavigateToEnum == NavigateToEnum.ThirdChildView) { ActivateItem(_thirdChildViewModel); } }
public void Handle(PersonModel message) { Person = message; NavigateToMessage navigateToMessage = new NavigateToMessage(NavigateToEnum.AnotherChildView); _eventAggregator.PublishOnUIThread(navigateToMessage); }
//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(); }
public void LoadPageThree() { NavigateToMessage navigateTo = new NavigateToMessage(NavigateToEnum.ThirdChildView); _eventAggregator.PublishOnUIThread(navigateTo); }
private void NavigateTo(NavigateToMessage msg) { var mainPage = (MainPage)Window.Current.Content; mainPage.MainFrame.Navigate(typeof(InventoryPage)); }