Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Animatable.FreezeCore Method

Makes this Animatable object unmodifiable or determines whether it can be made unmodifiable.

Namespace:  System.Windows.Media.Animation
Assembly:  PresentationCore (in PresentationCore.dll)
protected override bool FreezeCore(
	bool isChecking
)
You cannot use methods in XAML.

Parameters

isChecking
Type: System.Boolean

true if this method should simply determine whether this instance can be frozen. false if this instance should actually freeze itself when this method is called.

Return Value

Type: System.Boolean
If isChecking is true, this method returns true if this Animatable can be made unmodifiable, or false if it cannot be made unmodifiable.
If isChecking is false, this method returns true if the if this Animatable is now unmodifiable, or false if it cannot be made unmodifiable, with the side effect of having begun to change the frozen status of this object.

This method will return false when HasAnimatedProperties is true.

Do not call this method directly (except when calling base in an implementation). This method is called internally by CanFreeze (with isChecking equal to true) and Freeze (with isChecking equal to false).

Notes to Implementers:

Classes that derive from Animatable must override this method when the class contains data that is not stored using dependency properties.

A typical implementation would call the base implementation, then call the static Freeze method on all Freezable typed properties that the class contains, returning true only if all properties were frozen (or could have been frozen, in the case of passing through a false value for isChecking).

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0

Community Additions

Show:
© 2014 Microsoft. All rights reserved.