public BaseViewModel GetCurrentViewModel() { var currentPage = GetCurrentPage; var currentViewModel = _resolve.CreateViewModelFromPage(currentPage.GetType()); return(currentViewModel); }
private static void OnAutoWireViewModelChanged(BindableObject bindable, object oldValue, object newValue) { if ((!(bindable is BaseContentPage page))) { return; } page.BindingContext = _resolve.CreateViewModelFromPage(page.GetType()); }