Validation.SetErrorTemplate(DependencyObject, ControlTemplate) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
연결된 속성의 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
UIElement 설정할 ContentElement 개체입니다value.
- value
- ControlTemplate
ControlTemplate 표시기 계층에서 유효성 검사 오류 피드백을 생성하는 데 사용할 수 있습니다.
예외
이element면 null .