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

Definición

Obtiene el objeto BindingExpression para el enlace de la propiedad especificada.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

Parámetros

dp
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

Objeto DependencyProperty de destino del que se obtiene el enlace.The target DependencyProperty from which to get the binding.

Devoluciones

Devuelve BindingExpression si el destino son los datos enlazados; de lo contrario, devuelve null.Returns a BindingExpression if the target is data bound; otherwise, null.

Ejemplos

En el ejemplo siguiente se recupera un enlace mediante una consulta a una propiedad.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

Se aplica a