Click or drag to resize

IdValidationRule Class

A warning should be shown if the user starts to put data into the ID field and if it is an old port mapping, i. e. it has been there at the time the dialog has been opened. But, the WPF validation mechanism can only handle errors, not warnings, i. e. the input would be discarded that is not wanted. To avoid this the validation rule is disabled as soon as the focus of the ID field is lost, and the validation is triggered by hand to make the input valid. The validation is enabled again when another ID field gets the focus.
Inheritance Hierarchy
SystemObject
  System.Windows.ControlsValidationRule
    RAYLASE.MarkerPlugin.Devices.ScanController.SPICE3IdValidationRule

Namespace: RAYLASE.MarkerPlugin.Devices.ScanController.SPICE3
Assembly: RAYLASE.MarkerPlugin (in RAYLASE.MarkerPlugin.dll) Version: 2.19.0
Syntax
C#
public class IdValidationRule : ValidationRule

The IdValidationRule type exposes the following members.

Constructors
 NameDescription
Public methodIdValidationRuleInitializes a new instance of the IdValidationRule class
Top
Methods
 NameDescription
Public methodValidate
(Overrides ValidationRuleValidate(Object, CultureInfo))
Top
Fields
 NameDescription
Public fieldStatic memberIsOldId 
Public fieldStatic memberIsRuleEnabled 
Top
See Also