In WPF/SL, I could use the DependencyPropertyDescriptor to add listeners on value changes.
In Win8, this class does not seem to exist and so I am looking for an alternate (hopefully as easy) way of doing this.
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.
You can create a
PropertyChangeNotifierclass as described in this blog postAfter you create it you can use it on attached properties like this:
Also, DependencyPropertyDescriptor doesn’t exists in .net 4.5 client profile. However, it does exist in the normal profile. So if you must have it just change the target framework of your project.