Monday, 15 September 2014

c# - WPF - Updating DependencyProperty Metadata -


What is the technical reason for being able to update a dependency property's metadata?

If you try to do something like this below, it will produce an exception:

Attribute metadata not be changed after attributes are associated with property can.

  MIPROPROT Default metatata Property-Chengalated Callback = New Property Changeback Callback (MyMethod);  

There are many advantages of unchanging objects, one of which is thread-protection.

Besides, metadata is present on a per-type basis; The Property-Changed Callback setting will clear all other callbacks directly in legacy order.


No comments:

Post a Comment