internal PrivateFactoryWrapper2(IFactory2 factory2, MvxLayoutInflater inflater, MvxBindingVisitor bindingVisitor) { this._factory2 = factory2; this._inflater = inflater; this._bindingVisitor = bindingVisitor; }
public void setFactory2(IFactory2 factory2) { // Wrap the incoming factory if we need to. if (!(factory2 is MvxLayoutInflaterCompat.FactoryWrapper2)) { base.Factory2 = new MvxLayoutInflaterCompat.FactoryWrapper2(new DelegateFactory2(factory2, this._bindingVisitor)); return; } base.Factory2 = factory2; }
public DelegateFactory2(IFactory2 factoryToWrap, MvxBindingVisitor binder) { this._factory = factoryToWrap; this._factoryPlaceholder = binder; }
private void EnsureFactoryInitialized() { try { if (Factory != null && NestedFactory == null) NestedFactory = Factory; if (PlatformExtensions.IsApiGreaterThan10 && Factory2 != null && NestedFactory2 == null) NestedFactory2 = Factory2; } catch (Exception e) { Tracer.Error(e.Flatten(true)); } }