Ejemplo n.º 1
0
        public static async Task PushModalAsync(BaseViewModel viewModel, bool wrapInNavigation = true)
        {
            var view = SimpleIoC.GetPage(viewModel.GetType());

            view.BindingContext = viewModel;
            await Navigation.PushModalAsync(wrapInNavigation?new NavigationPage(view) : view);
        }
Ejemplo n.º 2
0
        public static async Task PushAsync(BaseViewModel viewModel)
        {
            var view = SimpleIoC.GetPage(viewModel.GetType());

            view.BindingContext = viewModel;
            await Navigation.PushAsync(view);
        }
Ejemplo n.º 3
0
        public static Page GetPage(BaseViewModel model, bool singleton = true)
        {
            var page = GetPage(model.GetType(), singleton);

            page.BindingContext = model;
            return(page);
        }