Freezable.IsFrozen and DependencyObject.IsSealed
What is the difference betwe开发者_Go百科en those two? Aren't they semantically equivalent?
No. Freezable.IsFrozen
can be toggled (one time) from outside the class by calling the Freeze()
method, DependencyObject.IsSealed
is read-only and its value can only be set internally by the class itself.
精彩评论