Why do animation classes (like DoubleAn开发者_如何学运维imation) require dependency properties? Dependency properties have a lot of overhead when compared to a simple property. Wouldn't passing in an object and property name and using to reflection to retrieve a setter delegate have made the animation classes more flexible and generally more usable? It would still have facilitated dependency properties, but would have the advantage of not requiring them.
Because you can set them with SetValue and GetValue instead of having to do all the reflection stuff to find and set the property.
精彩评论