'宣言 Public Event ValidationError As EventHandler(Of EditModeValidationErrorEventArgs)
public event EventHandler<EditModeValidationErrorEventArgs> ValidationError
イベント ハンドラが、このイベントに関連するデータを含む、EditModeValidationErrorEventArgs 型の引数を受け取りました。次の EditModeValidationErrorEventArgs プロパティには、このイベントの固有の情報が記載されます。
| プロパティ | 解説 |
|---|---|
| Editor | 関連する値エディターを取得します。 |
| ErrorMessage | エラー メッセージを取得または設定します。 |
| Exception | 検証エラーに関連する例外を取得します。 |
| Handled System.Windows.RoutedEventArgsから継承されます。 | Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route. |
| InvalidValueBehavior | 無効な値動作を取得または設定します。 |
| OriginalSource System.Windows.RoutedEventArgsから継承されます。 | Gets the original reporting source as determined by pure hit testing, before any possible System.Windows.RoutedEventArgs.Source adjustment by a parent class. |
| RoutedEvent System.Windows.RoutedEventArgsから継承されます。 | Gets or sets the System.Windows.RoutedEventArgs.RoutedEvent associated with this System.Windows.RoutedEventArgs instance. |
| Source System.Windows.RoutedEventArgsから継承されます。 | Gets or sets a reference to the object that raised the event. |
エディターの値を変更後にユーザーがコントロールから離れようとする時に、エディターはユーザー入力を検証します。変更された値は無効である場合、EditModeValidationError イベントが発生されます。入力したテキストが ValueType に解析できないか、ValueConstraint で指定された制限を満たさない場合、エディターは値を無効であると
詳細は、InvalidValueBehavior および IsValueValid を参照してください。