protected PageContainerViewModel() { BackCommand = PageCommand.Create(this, p => BackAsync(new NavigatorSettings { UsePlatformAnimation = true }), p => p.CanNavigateBack() ); Pages = new ObservableCollection <IPageViewModel> (); }
public static PageCommand <T> Create <T, TParam>(T page, Action <T, TParam> command, Func <T, TParam, bool> canExecute = null) where T : class, IPageViewModel { return(PageCommand.Create(page, command, canExecute)); }