How is WPF's DependencyObject implemented?
17,511
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
Related videos on Youtube
Author by
Tony the Pony
Updated on April 05, 2020Comments
-
Tony the Pony about 4 years
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.
-
RichardOD about 13 yearsA good thing to Google is dependency properties sparse storage
-
NoWar over 11 yearsHave a look here as well codeproject.com/Articles/140620/…
-