Assembly: WindowsBase (in WindowsBase.dll)
The specified dp or its value were invalid or do not exist.
In addition to being explicitly invoked through calling , the CoerceValueCallback for a dependency property is also invoked internally whenever the dependency property value is being re-evaluated by the WPF property system.
When you invoke the method, you are ultimately invoking the coerce value callback for the property that you specify. Typically you will invoke only if you know that a coerce value callback exists, and if you know the callback's criteria for coercion.
The most common scenario for calling is within class handling or property change callbacks of related properties that influence each other's values in a dependent way. For more information, see Dependency Property Callbacks and Validation.
The following example calls within a PropertyChangedCallback implementation that is used as the PropertyChangedCallback for a different dependency properties on the same class. This is a common pattern for introducing true value dependencies between dependency properties.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.