public TwoPanePageViewModel(
            INavigationService navigationService,
            ISillyDudeService sillyDudeService,
            ErrorEmulator errorEmulator)
            : base(navigationService)
        {
            SillyBottomTabsPageViewModel = new SillyBottomTabsPageViewModel(
                navigationService,
                sillyDudeService,
                errorEmulator);

            SillyDudeViewModel = new SillyDudeVm(navigationService, sillyDudeService);
        }
Ejemplo n.º 2
0
        public SillyDudePage(SillyDudeVm vm)
        {
            SetValue(NavigationPage.HasNavigationBarProperty, false);
            ViewModel     = vm;
            vm.Navigation = this.Navigation;

            InitializeComponent();
            if (vm.IsCreated == true)
            {
                addButton.IsVisible  = false;
                backButton.IsVisible = false;
            }
            else
            {
                delButton.IsVisible  = false;
                saveButton.IsVisible = false;
            }
            this.BindingContext = ViewModel;
        }