public override void Show(MvxViewModelRequest request) { Type fragmentType; if (_fragmentManager == null || !_fragmentTypeLookup.TryGetFragmentType(request.ViewModelType, out fragmentType)) { base.Show(request); return; } var fragment = (MvxFragment)Activator.CreateInstance(fragmentType); fragment.ViewModel = _viewModelLoader.LoadViewModel(request, null); ShowFragment(fragment, true); }
public override void Show(MvxViewModelRequest request) { Type fragmentType; fragmentHolderActivity = Activity as IHolder; if (fragmentHolderActivity == null || !_fragmentTypeLookup.TryGetFragmentType(request.ViewModelType, out fragmentType)) { base.Show(request); return; } else { ShowFragmnetFromCache(request, fragmentType); } }