Validation.SetErrorTemplate(DependencyObject, ControlTemplate) 메서드

정의

지정된 요소에 대한 ErrorTemplate 연결된 속성의 값을 설정합니다.

public:
 static void SetErrorTemplate(System::Windows::DependencyObject ^ element, System::Windows::Controls::ControlTemplate ^ value);
public static void SetErrorTemplate (System.Windows.DependencyObject element, System.Windows.Controls.ControlTemplate value);
static member SetErrorTemplate : System.Windows.DependencyObject * System.Windows.Controls.ControlTemplate -> unit
Public Shared Sub SetErrorTemplate (element As DependencyObject, value As ControlTemplate)

매개 변수

element
DependencyObject

value를 설정할 UIElement 또는 ContentElement 개체입니다.

value
ControlTemplate

표시기 계층에서 유효성 검사 오류 피드백을 생성하는 데 사용할 ControlTemplate 입니다.

예외

elementnull인 경우입니다.

적용 대상