protected PageContainerViewModel()
        {
            BackCommand = PageCommand.Create(this,
                                             p => BackAsync(new NavigatorSettings {
                UsePlatformAnimation = true
            }),
                                             p => p.CanNavigateBack()
                                             );

            Pages = new ObservableCollection <IPageViewModel> ();
        }
Exemplo n.º 2
0
 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));
 }