FrameworkContentElement.GetBindingExpression(DependencyProperty) Metoda

Definicja

Pobiera wartość BindingExpression dla powiązania określonej właściwości.

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

Parametry

dp
DependencyProperty

Element docelowy DependencyProperty , z którego ma być uzyskiwane powiązanie.

Zwraca

BindingExpression

Zwraca wartość BindingExpression , jeśli obiekt docelowy jest powiązany z danymi; w przeciwnym razie null.

Przykłady

Poniższy przykład pobiera powiązanie, wykonując zapytanie dotyczące właściwości.

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

Dotyczy