Animatable.FreezeCore(Boolean) Metodo
Definizione
Rende immodificabile questo oggetto Animatable o determina se l'oggetto può essere reso immodificabile.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);
override this.FreezeCore : bool -> bool
Protected Overrides Function FreezeCore (isChecking As Boolean) As Boolean
Parametri
- isChecking
- Boolean
true
se il metodo deve semplicemente determinare se l'istanza può essere bloccata.true
if this method should simply determine whether this instance can be frozen. false
se l'istanza deve effettivamente bloccarsi quando viene chiamato questo metodo.false
if this instance should actually freeze itself when this method is called.
Restituisce
Se isChecking
è true
, il metodo restituisce true
se l'oggetto Animatable può essere reso immodificabile. In caso contrario, il metodo restituisce false
.If isChecking
is true
, this method returns true
if this Animatable can be made unmodifiable, or false
if it cannot be made unmodifiable.
Se isChecking
è false
, il metodo restituisce true
se l'oggetto Animatable attualmente è immodificabile o false
se non può essere reso immodificabile, con l'effetto collaterale di aver iniziato a modificare lo stato bloccato dell'oggetto.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.
Commenti
Questo metodo restituirà false
quando HasAnimatedProperties è true
.This method will return false
when HasAnimatedProperties is true
.
Non chiamare direttamente questo metodo (eccetto quando si chiama base in un'implementazione).Do not call this method directly (except when calling base in an implementation). Questo metodo viene chiamato internamente CanFreeze da ( isChecking
con uguale true
a) Freeze e ( isChecking
con uguale false
a).This method is called internally by CanFreeze (with isChecking
equal to true
) and Freeze (with isChecking
equal to false
).
Note per gli eredi
Le classi che derivano da devono eseguire l'override di Animatable questo metodo quando la classe contiene dati non archiviati mediante proprietà di dipendenza.Classes that derive from Animatable must override this method when the class contains data that is not stored using dependency properties.
Un'implementazione tipica chiama l'implementazione di base, quindi chiama il metodo Freeze() statico su tutte Freezable le proprietà tipizzate che la classe contiene true
, restituendo solo se tutte le proprietà sono bloccate (o potrebbero essere state bloccate nel caso di passaggio di un false
valore per 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
).