Share via


Validation.ErrorTemplate 添付プロパティ

定義

装飾層に対する検証エラーのフィードバックを生成するために使用する ControlTemplate を取得または設定します。

see GetErrorTemplate, and SetErrorTemplate
see GetErrorTemplate, and SetErrorTemplate
see GetErrorTemplate, and SetErrorTemplate

注釈

WPF データ バインディング モデルを使用すると、ValidationRulesBinding オブジェクトに関連付けることができます。 ユーザーが無効な値を入力した場合は、アプリケーション ユーザー インターフェイス (UI) でエラーに関するフィードバックを提供できます。 このようなフィードバックを提供する方法の 1 つは、次の値を設定することです ValidationErrorTemplate 添付プロパティをカスタム ControlTemplateに指定します。

検証の詳細については、「データ バインディングの概要」の「データ検証」セクションを参照してください。

依存プロパティ情報

識別子フィールド ErrorTemplateProperty
に設定されたメタデータ プロパティ true IsNotDataBindable

適用対象

こちらもご覧ください