Why attached property Set and Get static methods are not called in XAML?

Posted by JD on Stack Overflow See other posts from Stack Overflow or by JD
Published on 2010-04-02T19:55:25Z Indexed on 2010/04/02 20:03 UTC
Read the original article Hit count: 204

Filed under:
|

Hi,

I have set break points on my attached properties SetXXX and GetXXX static methods. In Xaml, I have assigned values to the attached property. However, I was expecting the Set or Get static methods to be called but they are not. The attached property works as expected and if I call SetXXX and GetXXX methods in code, then it works are expected.

Why are the methods not called when set from Xaml?

JD.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about wpf