BindingExpression.ParentBinding Property

Definition

Gets the Binding object of this BindingExpression.

Binding ParentBinding();
public Binding ParentBinding { get; }
var binding = bindingExpression.parentBinding;
Public ReadOnly Property ParentBinding As Binding

Property Value

Binding

The Binding object of the current binding expression.

Remarks

You can't set the property values of a Binding object after that binding has been attached to a target element and target property. If you attempt this you'll get a run-time exception. Any Binding value you get back from ParentBinding is by definition a binding that's already been applied to a target, because you obtained the BindingExpression by calling FrameworkElement.GetBindingExpression.

Applies to