BindingExpression.ParentBinding Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.