Esempio n. 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)
 {
 }
Esempio n. 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)
 {
 }
Esempio n. 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;
        }
Esempio n. 7
0
 public void UpdateTarget(EBingingMode mode)
 {
     _bindingEngine.UpdateTarget(mode);
 }
Esempio n. 8
0
 public void UpdateSource(EBingingMode mode)
 {
     _bindingEngine.UpdateSource(mode);
 }