FrameworkContentElement.GetBindingExpression(DependencyProperty) メソッド
定義
指定したプロパティのバインディングに関する BindingExpression を取得します。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
パラメーター
バインディングの取得元のターゲット DependencyProperty。The target DependencyProperty from which to get the binding.
戻り値
ターゲットがデータ バインドされている場合は BindingExpression を返します。それ以外の場合は null
を返します。Returns a BindingExpression if the target is data bound; otherwise, null
.
例
次の例では、プロパティに対してクエリを実行して、バインディングを取得します。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