I created a simple class with DependencyProperty. When setting the value, I see that ValidateValueCallback is called before CoerceValueCallback.
The wpftutorial and other books indicate that coercion is called before verification.
3.5sp1 is here.
MSDN seems to imply that validation occurs before enforcement. This matches what you find.
, ValidateValueCallback - CoerceValueCallback. Reflector , , .
ValidateValueCallback
CoerceValueCallback
. , .
Edit:
-, CoerceValueCallback, ValidateValueCallback . --Validate.
, . , . , . / , . "", "".
, / , , . , "".
Source: https://habr.com/ru/post/1698153/More articles:Report Processor Architecture Question - c #Is it okay to use normalized tables with denormalized indexed views? - sqlCode to get * .aspx from website - asp.netHow can I access the "displayed" text of the window selection option from the DOM? - javascriptHow can I use array references inside arrays in PHP? - arraysLIKE in Linq to SQL - vb.netUsing Xdebug & Zend Debugger? - profilingNHibernate criteria: join two columns using an IN expression - nhibernateConnecting to an Informix Database from .Net - c #Why can't .NET parse a date string with a timezone? - datetimeAll Articles