FrameworkContentElement.GetBindingExpression(DependencyProperty) Método

Definición

Obtiene para BindingExpression el enlace de la propiedad especificada.

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

Parámetros

dp
DependencyProperty

Destino DependencyProperty desde el que se va a obtener el enlace.

Devoluciones

Devuelve si BindingExpression el destino está enlazado a datos; de lo contrario, null.

Ejemplos

En el ejemplo siguiente se recupera un enlace consultando una propiedad .

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

Se aplica a