예제 #1
0
 public BindingExpression(EBingingMode mode, object source, PropertyInfo sourceProperty, object target, PropertyInfo targetProperty)
 {
     Mode = mode;
     Source = source;
     SourceProperty = sourceProperty;
     Target = target;
     TargetProperty = targetProperty;
 }
 protected override BindingExpression createBindingExpression(
     EBingingMode mode,
     object source,
     PropertyInfo sourceProperty,
     object target,
     PropertyInfo targetProperty)
 {
     return new StandardControlBindingExpression(mode, source, sourceProperty, target, targetProperty);
 }
 public StandardControlBindingExpression(EBingingMode mode, object source, PropertyInfo sourceProperty, object target, PropertyInfo targetProperty)
     : base(mode, source, sourceProperty, target, targetProperty)
 {
 }
예제 #4
0
        internal void UpdateSource(EBingingMode mode)
        {
            if (Expressions.Count == 0) return;

            foreach (BindingExpression be in Expressions)
            {
                if ((mode & be.Mode) == be.Mode) be.UpdateSource(EventArgs.Empty);
            }
        }
 public CollectionBindingExpression(EBingingMode mode, object source, PropertyInfo sourceProperty, object target, PropertyInfo targetProperty)
     : base(mode, source, sourceProperty, target, targetProperty)
 {
 }
예제 #6
0
        protected virtual BindingExpression createBindingExpression(
            EBingingMode mode,
            object source,
            PropertyInfo sourceProperty,
            object target,
            PropertyInfo targetProperty)
        {
            if (sourceProperty == null) throw new ArgumentNullException("sourceProperty");
            if (targetProperty == null) throw new ArgumentNullException("targetProperty");

            var be = new BindingExpression(
                        mode,
                        source,
                        sourceProperty,
                        target,
                        targetProperty);

            return be;
        }
예제 #7
0
 public void UpdateTarget(EBingingMode mode)
 {
     _bindingEngine.UpdateTarget(mode);
 }
예제 #8
0
 public void UpdateSource(EBingingMode mode)
 {
     _bindingEngine.UpdateSource(mode);
 }