Are there any articles that describe how the DependencyObject class in WPF works “under the hood”?
Specifically, I’m curious about how dependency properties are stored and accessed efficiently.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As we know, a dependency property can be defined only on types that subclass DependencyObject. This base class defines a key value dictionary, that contains the local values of dependency properties.
When a dependency property is accessed, it’s value is dynamically resolved (via the GetValue(dependencyproperty) in the .Net wrapper). For greater detail, check here: http://wpftutorial.net/DependencyProperties.html