FrameworkContentElement.GetBindingExpression(DependencyProperty) メソッド

定義

指定したプロパティのバインドの BindingExpression を取得します。

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

パラメーター

dp
DependencyProperty

バインディングの取得元となるターゲット DependencyProperty

返品

ターゲットがデータ バインドの場合は BindingExpression を返します。それ以外の場合は null

次の例では、プロパティのクエリを実行してバインディングを取得します。

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

適用対象