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 の場合。

適用対象