开发者

What is a "Freezable" subtype in WPF/Silverlight?

开发者 https://www.devze.com 2022-12-12 03:39 出处:网络
What is a \"Freezable\"开发者_运维知识库 subtype in WPF/Silvellight?Important thing. Silverlight doesn\'t contains Freezable or FreezableCollection in it\'s infrastructure.

What is a "Freezable"开发者_运维知识库 subtype in WPF/Silvellight?


Important thing. Silverlight doesn't contains Freezable or FreezableCollection in it's infrastructure.

http://msdn.microsoft.com/en-us/library/cc903925(VS.95).aspx

http://www.charlespetzold.com/blog/2008/11/Text-on-a-Path-in-Silverlight.html


A freezable object is one that has a mechanism that allows you to "Freeze" it. This locks downs all the state and makes the object immutable. This makes the object more performant to use and safer to share between threads.

http://msdn.microsoft.com/en-us/library/ms750509.aspx


Ripped straight from MSDN's Freezable Objects Overview:

The Freezable class makes it easier to use certain graphics system objects and can help improve application performance. Examples of types that inherit from Freezable include the Brush, Transform, and Geometry classes. Because they contain unmanaged resources, the system must monitor these objects for modifications, and then update their corresponding unmanaged resources when there is a change to the original object. Even if you don't actually modify a graphics system object, the system must still spend some of its resources monitoring the object, in case you do change it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号