dependency properties - How WPF DependencyProperty pickup the key to distinguish each instance of an object and seek the values of the DependencyProperty? -
Many articles from Google have said that the dependency property is stable because it contains a key to maintain the value of each instance. Value is the object
But the problem is that, if we call GetValue / SetValue against deprecated property, then how it recognizes each instance and generates the key so that the values are read / saved from the hashtable for different instances What is the active object?
For example: If we create 2 examples of TestDP and then set the value for TestDProperty for both instances, then SetValue recognizes each instance and saves the dependency portion value accordingly to the hash table. is?
I getValue & amp; Code is examined for; Set up the dependency object, but I still can not understand how it separates each example. Code is it.LockUpEntire (DP Global Index) will pick up the Entry Index but I'm not sure how the Global Index has been prepared to distinguish each instance of the object.
Public class TestDp: DependencyObject {protected static dependency document DpTest = DependencyProperty.Register ("TestDProperty", typef (string), typef (testdp)); Public string TestDProperty {get {var r = (string) GetValue (dpTest); Return r; } Set {Set Value (DPTist, Value); The GetValue of DependencyObject will call GetValueEntry and will consume EntryIndex which you have mentioned 'However, it does not generate any key based on informational information.