/// <summary> /// 创建 BindingContext 对象 /// </summary> /// <param name="manager">绑定管理器</param> /// <param name="dataContext">数据上下文</param> public BindingContext( BindingManager manager, object dataContext ) { BindingManager = manager; SetDataContext( manager.Document, dataContext ); }
public IEnumerable<IBinding> CreateBindings( BindingManager manager, IHtmlElement element ) { if ( element.Name.EqualsIgnoreCase( "binding" ) ) { return new[] { CreateElementBinding( element ) }; } else { return element.Attributes().Select( a => CreateAttributeBinding( a ) ).NotNull(); } }
public IEnumerable<IBinding> CreateBindings( BindingManager manager, IHtmlDocument document ) { return Enumerable.Empty<IBinding>(); }
public IEnumerable <IBinding> CreateBindings(BindingManager manager, IHtmlDocument document) { return(Enumerable.Empty <IBinding>()); }