示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ControlTreeResolverBase"/> class.
        /// </summary>
        public ControlTreeResolverBase(IControlResolver controlResolver, IAbstractTreeBuilder treeBuilder)
        {
            this.controlResolver = controlResolver;
            this.treeBuilder     = treeBuilder;

            rawLiteralMetadata  = new Lazy <IControlResolverMetadata>(() => controlResolver.ResolveControl(new ResolvedTypeDescriptor(typeof(RawLiteral))));
            literalMetadata     = new Lazy <IControlResolverMetadata>(() => controlResolver.ResolveControl(new ResolvedTypeDescriptor(typeof(Literal))));
            placeholderMetadata = new Lazy <IControlResolverMetadata>(() => controlResolver.ResolveControl(new ResolvedTypeDescriptor(typeof(PlaceHolder))));
        }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultControlTreeResolver"/> class.
 /// </summary>
 public DefaultControlTreeResolver(IControlResolver controlResolver, IAbstractTreeBuilder treeBuilder, IBindingExpressionBuilder expressionBuilder)
     : base(controlResolver, treeBuilder)
 {
     this.bindingExpressionBuilder = expressionBuilder;
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultControlTreeResolver"/> class.
 /// </summary>
 public DefaultControlTreeResolver(IControlResolver controlResolver, IAbstractTreeBuilder treeBuilder)
     : base(controlResolver, treeBuilder)
 {
 }