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 | |
---|---|---|
CanFreeze | Gets a value that indicates whether the object can be made unmodifiable. (Inherited from System.Windows.Freezable) | |
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). | |
IsFrozen | Gets a value that indicates whether the object is currently modifiable. (Inherited from System.Windows.Freezable) | |
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. |
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) | |
Clone | Creates a modifiable clone of the System.Windows.Freezable, making deep copies of the object's values. When copying the object's dependency properties, this method copies expressions (which might no longer resolve) but not animations or their current values. (Inherited from System.Windows.Freezable) | |
CloneCurrentValue | Creates a modifiable clone (deep copy) of the System.Windows.Freezable using its current values. (Inherited from System.Windows.Freezable) | |
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) | |
Freeze | Makes the current object unmodifiable and sets its System.Windows.Freezable.IsFrozen property to true. (Inherited from System.Windows.Freezable) | |
GetAsFrozen | Creates a frozen copy of the System.Windows.Freezable, using base (non-animated) property values. Because the copy is frozen, any frozen sub-objects are copied by reference. (Inherited from System.Windows.Freezable) | |
GetCurrentValueAsFrozen | Creates a frozen copy of the System.Windows.Freezable using current property values. Because the copy is frozen, any frozen sub-objects are copied by reference. (Inherited from System.Windows.Freezable) | |
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 | |
---|---|---|
CloneCore | Makes the instance a clone (deep copy) of the specified System.Windows.Freezable using base (non-animated) property values. (Inherited from System.Windows.Freezable) | |
CloneCurrentValueCore | Makes the instance a modifiable clone (deep copy) of the specified System.Windows.Freezable using current property values. (Inherited from System.Windows.Freezable) | |
CreateInstance | Initializes a new instance of the System.Windows.Freezable class. (Inherited from System.Windows.Freezable) | |
CreateInstanceCore | Overridden. Creates a new instance of ValueConstraint. | |
FreezeCore | Overridden. | |
GetAsFrozenCore | Makes the instance a frozen clone of the specified System.Windows.Freezable using base (non-animated) property values. (Inherited from System.Windows.Freezable) | |
GetCurrentValueAsFrozenCore | Makes the current instance a frozen clone of the specified System.Windows.Freezable. If the object has animated dependency properties, their current animated values are copied. (Inherited from System.Windows.Freezable) | |
OnChanged | Called when the current System.Windows.Freezable object is modified. (Inherited from System.Windows.Freezable) | |
OnFreezablePropertyChanged | Overloaded. Ensures that appropriate context pointers are established for a System.Windows.DependencyObjectType data member that has just been set. (Inherited from System.Windows.Freezable) | |
OnPropertyChanged(DependencyPropertyChangedEventArgs) | Overrides the System.Windows.DependencyObject implementation of System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs) to also invoke any System.Windows.Freezable.Changed handlers in response to a changing dependency property of type System.Windows.Freezable. (Inherited from System.Windows.Freezable) | |
ReadPreamble | Ensures that the System.Windows.Freezable is being accessed from a valid thread. Inheritors of System.Windows.Freezable must call this method at the beginning of any API that reads data members that are not dependency properties. (Inherited from System.Windows.Freezable) | |
ShouldSerializeProperty | Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property. (Inherited from System.Windows.DependencyObject) | |
WritePostscript | Raises the System.Windows.Freezable.Changed event for the System.Windows.Freezable and invokes its System.Windows.Freezable.OnChanged method. Classes that derive from System.Windows.Freezable should call this method at the end of any API that modifies class members that are not stored as dependency properties. (Inherited from System.Windows.Freezable) | |
WritePreamble | Verifies that the System.Windows.Freezable is not frozen and that it is being accessed from a valid threading context. System.Windows.Freezable inheritors should call this method at the beginning of any API that writes to data members that are not dependency properties. (Inherited from System.Windows.Freezable) |
Name | Description | |
---|---|---|
Changed | Occurs when the System.Windows.Freezable or an object it contains is modified. (Inherited from System.Windows.Freezable) | |
PropertyChanged | Raised whenever a property's value changes. |