I am looking for a way to override DependencyObject.GetValue. The reason is:
- the standard implementation of GetValue in .NET framework libraryÃÂ tightly coupledÃÂ with ActivityBind,ÃÂ it does not work with any other binding implementation;
- ActivityBind is not good enough for my project;
- ActivityBind is sealed,ÃÂ I cannot deriveÃÂ my own binding from it;
- So IÃÂ have to completely bypass ActivityBind and somehowÃÂ let GetValue call myÃÂ custom property binding mechanism.
The only extension point of GetValue I found is the delegate GetValueOverride. But sadly, this GetValueOverride takes only 1 parameter which is the DependencyObject the delegateÃÂ is called about, that means the call back function will not know what property it is called about.
Does anybody have any other idea about customizing property binding and/or DependencyObject.GetValue?
I do have a feeling thatÃÂ the implementation of property binding in the framework need second thought, currently they are so hard to be extended.
View Complete Post