Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FrameworkContentElement.GetBindingExpression Method (DependencyProperty)

 

Gets the BindingExpression for the specified property's binding.

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

public BindingExpression GetBindingExpression(
	DependencyProperty dp
)

Parameters

dp
Type: System.Windows.DependencyProperty

The target DependencyProperty from which to get the binding.

Return Value

Type: System.Windows.Data.BindingExpression

Returns a BindingExpression if the target is data bound; otherwise, null.

The following example retrieves a binding by querying a property.

Binding binding = introParagraph.GetBindingExpression(FrameworkContentElement.TagProperty).ParentBinding;

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft