Language

Validation.ErrorTemplate 添付プロパティ

定義

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

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

注釈

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

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

依存関係プロパティ情報

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

適用対象

こちらもご覧ください