FrameworkContentElement.GetBindingExpression(DependencyProperty) Methode

Definition

Ruft die BindingExpression Bindung der angegebenen Eigenschaft ab.

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

Parameter

dp
DependencyProperty

Das Ziel DependencyProperty , aus dem die Bindung abgerufen werden soll.

Gibt zurück

Gibt einen BindingExpression Wert zurück, wenn das Ziel datengebunden ist; andernfalls null.

Beispiele

Im folgenden Beispiel wird eine Bindung abgerufen, indem eine Eigenschaft abgefragt wird.

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

Gilt für: