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

UIElementを設定するContentElementまたはvalue オブジェクト。

value
ControlTemplate

装飾レイヤーで検証エラー フィードバックを生成するために使用する ControlTemplate

例外

elementnullの場合。

適用対象