/// <summary> /// Pushes the asynchronous. /// </summary> /// <typeparam name="TViewModel">The type of the t view model.</typeparam> /// <param name="activateAction">The activate action.</param> /// <param name="animated">If set to <c>true</c> the navigation is animated.</param> /// <returns>Task.</returns> public Task PushAsync <TViewModel>(Action <TViewModel, Page> activateAction, bool animated = true) where TViewModel : ViewModel { return(this.PushAsync(ViewFactory.CreatePage <TViewModel, Page>(activateAction) as Page, animated)); }
/// <summary> /// Pushes the modal asynchronous. /// </summary> /// <typeparam name="TViewModel">The type of the t view model.</typeparam> /// <param name="activateAction">The create action.</param> /// <returns>Task.</returns> public Task PushModalAsync <TViewModel>(Action <TViewModel, Page> activateAction = null) where TViewModel : ViewModel { return(this.PushModalAsync(ViewFactory.CreatePage <TViewModel, Page>(activateAction) as Page)); }