コード例 #1
0
 internal PrivateFactoryWrapper2(IFactory2 factory2, MvxLayoutInflater inflater,
     MvxBindingVisitor bindingVisitor)
 {
     this._factory2 = factory2;
     this._inflater = inflater;
     this._bindingVisitor = bindingVisitor;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 public DelegateFactory2(IFactory2 factoryToWrap, MvxBindingVisitor binder)
 {
     this._factory = factoryToWrap;
     this._factoryPlaceholder = binder;
 }
コード例 #4
0
 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));
     }
 }