FrameworkContentElement.GetBindingExpression(DependencyProperty) Metodo
Definizione
Ottiene l'oggetto BindingExpression per l'associazione della proprietà specificata.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
Parametri
Oggetto DependencyProperty di destinazione dal quale ottenere l'associazione.The target DependencyProperty from which to get the binding.
Restituisce
Restituisce un oggetto BindingExpression se la destinazione è associata a dati; in caso contrario, null
.Returns a BindingExpression if the target is data bound; otherwise, null
.
Esempi
Nell'esempio seguente viene recuperata un'associazione eseguendo una query su una proprietà.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