Is the dependency property system in WPF the Flyweight Pattern applied to save memory storage?
I believe you could consider it as an implementation of the flyweight pattern yes.
Default values are shared across all controls of the same type. Only those properties that deviate from the default values take up extra memory.
Additional information can be found on Christian Mosers blog, or msdn's page on value precedence.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With