Animatable.FreezeCore(Boolean) Método
Definición
Convierte este objeto Animatable en no modificable o determina si se puede convertir en no modificable.Makes this Animatable object unmodifiable or determines whether it can be made unmodifiable.
protected:
override bool FreezeCore(bool isChecking);
protected override bool FreezeCore (bool isChecking);
abstract member FreezeCore : bool -> bool
override this.FreezeCore : bool -> bool
override this.FreezeCore : bool -> bool
Protected Overrides Function FreezeCore (isChecking As Boolean) As Boolean
Parámetros
- isChecking
- Boolean
true
si este método debe determinar simplemente si se puede inmovilizar esta instancia.true
if this method should simply determine whether this instance can be frozen. false
si esta instancia se debe inmovilizar realmente cuando se llama a este método.false
if this instance should actually freeze itself when this method is called.
Devoluciones
Si el valor de isChecking
es true
, este método devuelve true
si este objeto Animatable se puede convertir en no modificable, o false
si no se puede convertir en no modificable.If isChecking
is true
, this method returns true
if this Animatable can be made unmodifiable, or false
if it cannot be made unmodifiable.
Si isChecking
es false
, este método devuelve true
si este objeto Animatable especificado ahora es no modificable, o false
si no se puede convertir en no modificable, con el inconveniente de tener que empezar a cambiar su estado de inmovilización.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.
Comentarios
Este método devolverá false
cuando HasAnimatedProperties sea true
.This method will return false
when HasAnimatedProperties is true
.
No llame a este método directamente (excepto al llamar a base en una implementación de).Do not call this method directly (except when calling base in an implementation). Llama internamente a este método CanFreeze (con isChecking
igual que true
) y Freeze (con isChecking
igual a false
).This method is called internally by CanFreeze (with isChecking
equal to true
) and Freeze (with isChecking
equal to false
).
Notas a los desarrolladores de herederos
Las clases que derivan de Animatable deben invalidar este método cuando la clase contiene datos que no se almacenan mediante propiedades de dependencia.Classes that derive from Animatable must override this method when the class contains data that is not stored using dependency properties.
Una implementación típica llamaría a la implementación base y, a continuación, llamará al Freeze() método estático en todas Freezable las propiedades con tipo que contiene la clase, devolviendo true
solo si todas las propiedades estuvieran inmovilizadas (o podrían haberse inmovilizado, en el caso de pasar un false
valor para isChecking
).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
).