ControlTemplate.ValidateTemplatedParent(FrameworkElement) 메서드

정의

규칙 집합에 대해 템플릿 부모를 확인합니다.

protected:
 override void ValidateTemplatedParent(System::Windows::FrameworkElement ^ templatedParent);
protected override void ValidateTemplatedParent (System.Windows.FrameworkElement templatedParent);
override this.ValidateTemplatedParent : System.Windows.FrameworkElement -> unit
Protected Overrides Sub ValidateTemplatedParent (templatedParent As FrameworkElement)

매개 변수

templatedParent
FrameworkElement

이 템플릿이 적용되는 요소입니다.

예외

templatedParentnull이 아니어야 하는 경우

ControlTemplateControl에서 사용하기 전에 Template 속성을 설정하여 ControlTemplateControl과 연결해야 합니다.

설명

메서드는 다음 규칙을 사용합니다.

  1. 형식 templatedParent FrameworkContentElement일 수 없습니다.

  2. 형식 templatedParentFrameworkElement Control아닌 형식일 수 없습니다.

  3. templatedParent .와 연결ControlTemplate되지 않은 값일 수 없습니다Control.

적용 대상