Gets a value that indicates whether the object can be made unmodifiable.
member CanFreeze : bool with get
System .Boolean if the current object can be made unmodifiable or is already unmodifiable; otherwise, true . false Notes to Inheritors
This method implementation uses the
method with FreezeCore isChecking set to to determine whether a true can be made unmodifiable. To modify the way this property behaves in a derived class, override the Freezable method. FreezeCore
This example shows how to make a
read-only by calling its Freezable method. Freeze
You cannot freeze a
object if any one of the following conditions is Freezable about the object: true
It has animated or data bound properties.
It has properties that are set by a dynamic resource. For more information about dynamic resources, see the
. XAML Resources
sub-objects that cannot be frozen. Freezable
If these conditions are
for your false object and you do not intend to modify it, consider freezing it to gain performance benefits. Freezable
The following example freezes a
, which is a type of SolidColorBrush object. Freezable
No code example is currently available or this language may not be supported.
For more information about
objects, see the Freezable . Freezable Objects Overview .NET Framework
Supported in: 4.5.1, 4.5, 4, 3.5, 3.0
.NET Framework Client Profile
Supported in: 4, 3.5 SP1
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
( 1500 characters remaining)
Thank you for your feedback