Lets say I’ve got a textbox and an attached property called Foo.Bar.
<Textbox local:Foo.Bar="5" />
Does the attached property hold a strong reference to the textbox?
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.
No they should not, you can think of DependencyObejcts as dictionaries and of Dependency / Attached properties as keys in the dictionary.
The OnBarChanged can do whatever it wants with the TextBox though, it could potentially keep a strong reference to it somewhere.