BindingExpression.ParentBinding property

Applies to Windows and Windows Phone

Gets the Binding object of this BindingExpression.

Syntax


public Binding ParentBinding { get; }

Property value

Type: 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.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Data
Windows::UI::Xaml::Data [C++]

Metadata

Windows.winmd

See also

BindingExpression

 

 

Show:
© 2014 Microsoft