The following tables list the members exposed by ValueConstraint.
Name | Description | |
---|---|---|
ValueConstraint Constructor | Creates a new instance of ValueConstraint class without any constraints. |
Name | Description | |
---|---|---|
EnumerationProperty | Identifies the Enumeration dependency property | |
FixedValueProperty | Identifies the FixedValue dependency property | |
MaxExclusiveProperty | Identifies the MaxExclusive dependency property | |
MaxInclusiveProperty | Identifies the MaxInclusive dependency property | |
MaxLengthProperty | Identifies the MaxLength dependency property | |
MinExclusiveProperty | Identifies the MinExclusive dependency property | |
MinInclusiveProperty | Identifies the MinInclusive dependency property | |
MinLengthProperty | Identifies the MinLength dependency property | |
NullableProperty | Identifies the Nullable dependency property | |
RegexPatternProperty | Identifies the RegexPattern dependency property | |
ValidateAsTypeProperty | Identifies the ValidateAsType dependency property. |
Name | Description | |
---|---|---|
DependencyObjectType | Gets the System.Windows.DependencyObjectType that wraps the CLR type of this instance. (Inherited from System.Windows.DependencyObject) | |
Dispatcher | Gets the System.Windows.Threading.Dispatcher this System.Windows.Threading.DispatcherObject is associated with. (Inherited from System.Windows.Threading.DispatcherObject) | |
Enumeration | Gets/sets an object implementing System.Collections.IEnumerable which contains a list of value options. Note, this property defaults to a null (Nothing) value. | |
FixedValue | Gets/sets the value which the constrained value must be equal to. | |
HasAnyConstraints | Returns true if any of the constraint properties are set on this object or if the ValidateAsType property is set to something other than 'Unknown'. | |
HasEnumeration | Returns true if the Enumeration list is not null. | |
HasFixedValue | Returns true if the FixedValue property is not null (Nothing). | |
HasMaxExclusive | Returns true if the MaxExclusive property is not null (Nothing). | |
HasMaxInclusive | Returns true if the MaxInclusive property is not null (Nothing). | |
HasMaxLength | Returns true if the MaxLength property has a value greater than 0. | |
HasMinExclusive | Returns true if the MinExclusive property is not null (Nothing). | |
HasMinInclusive | Returns true if the MinInclusive property is not null (Nothing). | |
HasMinLength | Returns true if the MinLength property has a value greater than 0. | |
HasNullable | Returns true if the Nullable property returns a non-default value. | |
HasRegexPattern | Returns true if the RegexPattern is not null (Nothing). | |
HasValidationRules | Returns true if the ValidationRules is not null (Nothing). | |
IsSealed | Gets a value that indicates whether this instance is currently sealed (read-only). (Inherited from System.Windows.DependencyObject) | |
MaxExclusive | Gets/sets the value that will constraint the data value to be less than it. | |
MaxInclusive | Gets/sets the maximum value which the constrained value is allowed to be. | |
MaxLength | Gets/sets the maximum length (inclusive) allowed for the constrained value. This constraint applies to values of type 'string'. The default value is 0, which means that there is no limit. | |
MinExclusive | Gets/sets the value that will constraint the data value to be greater than it. | |
MinInclusive | Gets/sets the minimum value which the constrained value is allowed to be. | |
MinLength | Gets/sets the minimum length (inclusive) allowed for the constrained value. This constraint applies to values of type 'string'. The default value is 0, which means there is no minimum length constraint. | |
Nullable | Gets/sets a flag which indicates if the constrained value is allowed to be null (Nothing). Default value of this property is null which is to allow null values. | |
RegexPattern | Gets/sets the regular expression to which the constrained value must adhere. | |
ValidateAsType | Gets/sets the ValidateAsType value which the Validate(Object,Type) method should use to constrain the input value. By default this value is set to Unknown. | |
ValidationRules | Specifies a list of ValidationRule objects to validate the constraned value. |
Name | Description | |
---|---|---|
ClearValue | Overloaded. Clears the local value of a property. The property to be cleared is specified by a System.Windows.DependencyProperty identifier. (Inherited from System.Windows.DependencyObject) | |
CoerceValue | Coerces the value of the specified dependency property. This is accomplished by invoking any System.Windows.CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling System.Windows.DependencyObject. (Inherited from System.Windows.DependencyObject) | |
Equals | (Inherited from System.Windows.DependencyObject) | |
GetHashCode | Gets a hash code for this System.Windows.DependencyObject. (Inherited from System.Windows.DependencyObject) | |
GetLocalValueEnumerator | Creates a specialized enumerator for determining which dependency properties have locally set values on this System.Windows.DependencyObject. (Inherited from System.Windows.DependencyObject) | |
GetTypeFromValidateAsType | Returns the System.Type object which corresponds to the ValidateAsType argument. | |
GetValidateAsTypeFromType | Returns a ValidateAsType value which represents the System.Type argument. | |
GetValue | Returns the current effective value of a dependency property on this instance of a System.Windows.DependencyObject. (Inherited from System.Windows.DependencyObject) | |
InitializeFrom | Overloaded. Copies the state of the argument into this object. | |
InvalidateProperty | (Inherited from System.Windows.DependencyObject) | |
Merge | Overloaded. Copies constraint settings from the source ValueConstraint to the target (i.e. the instance on which this method was invoked). Only constraint settings which have default values on the target will be assigned values from the source. Only constraint settings specified by the 'constraintFlags' flags argument will be copied. Note, this method does not copy the ValidateAsType property. | |
ReadLocalValue | Returns the local value of a dependency property, if it exists. (Inherited from System.Windows.DependencyObject) | |
Reset | Overloaded. Resets all of the constraint settings in this object to their initial (not set) state which are specified in the 'constraintFlags' bit flag argument. Note, this method does not reset the ValidateAsType property. | |
SetCurrentValue | (Inherited from System.Windows.DependencyObject) | |
SetValue | Overloaded. Sets the local value of a dependency property, specified by its dependency property identifier. (Inherited from System.Windows.DependencyObject) | |
Validate | Overloaded. Returns true if the argument is considered valid with regards to the current constraint settings. |
Name | Description | |
---|---|---|
OnPropertyChanged | Overridden. Called when a property changes. | |
ShouldSerializeProperty | Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property. (Inherited from System.Windows.DependencyObject) |
Name | Description | |
---|---|---|
PropertyChanged | Raised whenever a property's value changes. |