FrameworkElement.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 입니다.

반품

대상 속성에 활성 바인딩이 있으면 A BindingExpression 입니다. 그렇지 않으면 반환됩니다 null.

설명

반환 값을 null 확인하는 방법은 속성에 활성 바인딩이 있는지 여부를 확인하는 데 사용할 수 있는 기술입니다.

이 메서드는 실제로 메서드를 둘러싼 편리한 래퍼일 BindingOperations.GetBindingExpression 뿐입니다. GetBindingExpression 는 현재 인스턴스와 매개 변수를 dp .에 BindingOperations.GetBindingExpression전달합니다.

적용 대상

추가 정보