FrameworkContentElement.GetBindingExpression(DependencyProperty) FrameworkContentElement.GetBindingExpression(DependencyProperty) FrameworkContentElement.GetBindingExpression(DependencyProperty) FrameworkContentElement.GetBindingExpression(DependencyProperty) Method

Définition

Reçoit le BindingExpression pour la liaison de propriété spécifiée.Gets the BindingExpression for the specified property's binding.

public:
 System::Windows::Data::BindingExpression ^ GetBindingExpression(System::Windows::DependencyProperty ^ dp);
public System.Windows.Data.BindingExpression GetBindingExpression (System.Windows.DependencyProperty dp);
member this.GetBindingExpression : System.Windows.DependencyProperty -> System.Windows.Data.BindingExpression
Public Function GetBindingExpression (dp As DependencyProperty) As BindingExpression

Paramètres

dp
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

Le DependencyProperty cible à partir duquel obtenir la liaison.The target DependencyProperty from which to get the binding.

Retours

Retourne un BindingExpression si la cible est liée aux données ; sinon, null.Returns a BindingExpression if the target is data bound; otherwise, null.

Exemples

L’exemple suivant récupère une liaison en interrogeant une propriété.The following example retrieves a binding by querying a property.

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

S’applique à