PropertyMetadata.OnApply(DependencyProperty, Type) 메서드

정의

이 메타데이터가 속성에 적용되면 호출됩니다. 이는 메타데이터가 봉인되고 있음을 나타냅니다.

protected:
 virtual void OnApply(System::Windows::DependencyProperty ^ dp, Type ^ targetType);
protected virtual void OnApply(System.Windows.DependencyProperty dp, Type targetType);
abstract member OnApply : System.Windows.DependencyProperty * Type -> unit
override this.OnApply : System.Windows.DependencyProperty * Type -> unit
Protected Overridable Sub OnApply (dp As DependencyProperty, targetType As Type)

매개 변수

dp
DependencyProperty

메타데이터가 적용된 종속성 속성입니다.

targetType
Type

형식별 메타데이터인 경우 이 메타데이터와 연결된 형식입니다. 기본 메타데이터인 경우 이 값은 null 참조입니다.

설명

서브클래스는 서브클래스의 데이터 구조 PropertyMetadata 에 대한 변경 가능성을 한 번 호출하면 OnApply 변경할 수 없는 것으로 표시해야 합니다. 메타데이터가 속성 시스템 작업에 적용되면 호출됩니다(등록, 소유자 추가, 메타데이터 재정의).

적용 대상