private async void AddView(IViewModel viewModel) { await detailNavigationPage.PushAsync(ShellViewPage.Create(viewFactory.GetView(viewModel))); Detail = detailNavigationPage; IsReady = true; }
public static void MasterViewModelPropertyChanged(BindableObject bindableObject, object oldValue, object newValue) { MasterDetailShellPage masterDetailShellPage = (MasterDetailShellPage)bindableObject; IViewModel newViewModel = (IViewModel)newValue; if (newViewModel != null) { masterDetailShellPage.Master = ShellViewPage.Create(masterDetailShellPage.viewFactory.GetView(newViewModel)); } }
private async void AddView(IViewModel viewModel) { await PushAsync(ShellViewPage.Create(viewFactory.GetView(viewModel))); IsReady = true; }