protected override void OnCreate (Bundle bundle)
{
base.OnCreate (bundle);
SetContentView (Resource.Layout.Main);
RegisterForDetailsRequests(bundle);
}
{
RegisterFragment<HomeFragment,HomeFragmentViewModel>(typeof(HomeFragmentViewModel).Name, bundle, new HomeFragmentViewModel());
}
public void RegisterFragment<TFragment, TViewModel>(string tag, Bundle args, IMvxViewModel viewModel = null)
where TFragment : IMvxFragmentView
where TViewModel : IMvxViewModel
{
var customPresenter = Mvx.Resolve<IMvxFragmentsPresenter>();
customPresenter.RegisterViewModelAtHost<TViewModel>(this);
}
这是我的代码,我收到此错误:
引起:md52ce486a14f4bcd95899665e9d932190b.JavaProxyThrowable:Cirrious.CrossCore.Exceptions.MvxIoCResolveException:无法解析类型Cirrious.MvvmCross.Droid.Fragging.Presenter.IMvxFragmentsPresenter