FrameworkContentElement.GetBindingExpression(DependencyProperty) Metoda

Definice

BindingExpression Získá pro zadanou vlastnost vazby.

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

Cíl DependencyProperty , ze kterého chcete získat vazbu.

Návraty

BindingExpression

BindingExpression Vrátí hodnotu, pokud je cíl vázán na data; nullv opačném případě .

Příklady

Následující příklad načte vazbu dotazováním vlastnosti.

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

Platí pro