예제 #1
0
    /// <summary>
    /// 创建 BindingContext 对象
    /// </summary>
    /// <param name="manager">绑定管理器</param>
    /// <param name="dataContext">数据上下文</param>
    public BindingContext( BindingManager manager, object dataContext )
    {

      BindingManager = manager;
      SetDataContext( manager.Document, dataContext );

    }
예제 #2
0
 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();
   }
 }
예제 #3
0
 public IEnumerable<IBinding> CreateBindings( BindingManager manager, IHtmlDocument document )
 {
   return Enumerable.Empty<IBinding>();
 }
예제 #4
0
 public IEnumerable <IBinding> CreateBindings(BindingManager manager, IHtmlDocument document)
 {
     return(Enumerable.Empty <IBinding>());
 }