public BaseViewModel GetCurrentViewModel()
        {
            var currentPage      = GetCurrentPage;
            var currentViewModel = _resolve.CreateViewModelFromPage(currentPage.GetType());

            return(currentViewModel);
        }
예제 #2
0
        private static void OnAutoWireViewModelChanged(BindableObject bindable, object oldValue, object newValue)
        {
            if ((!(bindable is BaseContentPage page)))
            {
                return;
            }

            page.BindingContext = _resolve.CreateViewModelFromPage(page.GetType());
        }