public async Task NavigateToViewModelAsync <T>(object param = null, bool isModal = false, bool isAnimated = true) { IPageLocator pageLocator = new PageLocator(); Page page = pageLocator.ResolvePageAndViewModel(typeof(T), param, this); if (isModal) { await Navigation.PushModalAsync(page, isAnimated); } else { await Navigation.PushAsync(page, isAnimated); } }
public Page ResolvePageFor(Type pageType, object args = null) { var page = PageLocator.ResolvePageAndViewModel(pageType, args); return(page); }
public Page ResolvePageFor <T>(object args = null) where T : IViewModel { var page = PageLocator.ResolvePageAndViewModel(typeof(T), args); return(page); }