Question

Can anyone explain how is dependency property implemented? Is it just a static dictionary that is declared in base class with a reference of given instance as a key?I can't find any resources about this in internet...
Thanks a lot

Was it helpful?

Solution

I see two questions:

  1. How do dependency properties work? The MSDN article on Properties in WPF is a great series on dependency properties. Should be a good overview to get you started.
  2. How are dependency properties implemented? You won't find any resources on this because why would Microsoft want to expose their implementation of DP? That being said, that's certainly open to discussion.

OTHER TIPS

...a few years later.

and there is already a source code browser for .NET. You can study how it is implemented here: DependencyProperty.cs

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top