Version

ValueConstraint Class

Contains various constraints that can be applied to a data value.
Syntax
'Declaration
 
Public Class ValueConstraint 
   Inherits System.Windows.Freezable
public class ValueConstraint : System.Windows.Freezable 
Remarks

ValueConstraint object contains various properties that you can set to create constraints for data values. The ValueConstraint will check to see if a data value matches all the constraints.

ValueInput class exposes ValueInput.ValueConstraint property that is of this object type. ValueInput's ValueConstraint property can be used to constraint what values the user can input in the editors. See ValueInput.ValueConstraint for more information.

You can use the ValueConstraint directly to validate a value by calling its Validate(Object,Type) or one of the other overloads.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also