Version 24.2 (latest)

ValueConstraint Class Methods

For a list of all members of this type, see ValueConstraint members.

Public Methods
 NameDescription
Public MethodClearValueOverloaded. 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)
Public MethodCoerceValueCoerces 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)
Public MethodEquals (Inherited from System.Windows.DependencyObject)
Public MethodGetHashCodeGets a hash code for this System.Windows.DependencyObject. (Inherited from System.Windows.DependencyObject)
Public MethodGetLocalValueEnumeratorCreates a specialized enumerator for determining which dependency properties have locally set values on this System.Windows.DependencyObject. (Inherited from System.Windows.DependencyObject)
Public Methodstatic (Shared in Visual Basic)GetTypeFromValidateAsTypeReturns the System.Type object which corresponds to the ValidateAsType argument.  
Public Methodstatic (Shared in Visual Basic)GetValidateAsTypeFromTypeReturns a ValidateAsType value which represents the System.Type argument.  
Public MethodGetValueReturns the current effective value of a dependency property on this instance of a System.Windows.DependencyObject. (Inherited from System.Windows.DependencyObject)
Public MethodInitializeFromOverloaded. Copies the state of the argument into this object.  
Public MethodInvalidateProperty (Inherited from System.Windows.DependencyObject)
Public MethodMergeOverloaded. 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.  
Public MethodReadLocalValueReturns the local value of a dependency property, if it exists. (Inherited from System.Windows.DependencyObject)
Public MethodResetOverloaded. 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.  
Public MethodSetCurrentValue (Inherited from System.Windows.DependencyObject)
Public MethodSetValueOverloaded. Sets the local value of a dependency property, specified by its dependency property identifier. (Inherited from System.Windows.DependencyObject)
Public MethodValidateOverloaded. Returns true if the argument is considered valid with regards to the current constraint settings.  
Protected Methods
 NameDescription
Protected MethodOnPropertyChangedOverridden. Called when a property changes.  
Protected Internal MethodShouldSerializePropertyReturns a value that indicates whether serialization processes should serialize the value for the provided dependency property. (Inherited from System.Windows.DependencyObject)
See Also