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

대상이 데이터 바인딩되어 있으면 BindingExpression을 반환하고, 그렇지 않으면 null을 반환합니다.

예제

다음 예제에서는 속성을 쿼리하여 바인딩을 검색합니다.

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

적용 대상