WPF/Silverlight: Attached Properties and Garbage Collection -


lets i've got textbox , attached property called foo.bar.

<textbox local:foo.bar="5" /> 

does attached property hold strong reference textbox?

no should not, can think of dependencyobejcts dictionaries , of dependency / attached properties keys in dictionary.

the onbarchanged can whatever wants textbox though, potentially keep strong reference somewhere.


Comments