protected override IBindingExpression GetExpression() { var binding = new BindingExpression(this.Target, "PropertyA", this.Source, this.Binding); binding.Bind(); return binding; }
/// <summary> /// Sets a one-time binding between target and source. /// </summary> public static void OneTimeBind(this object target, string propertyName, IPropertyAccessor accessor, object source, Binding binding) { var expression = new BindingExpression(target, propertyName, accessor, source, binding); expression.Dispose(); }