Class
InheritanceContextPropagator

This class is used to propagate inheritance context to non-visual class instances that might be part of the WPF control element tree. Note that while it relies on the special notion that Freezable classes have for "inheritance context", you should not rely on any other characteristics that Freezable objects usually have (cloning, freezing, etc.). Actually this object will explicitly prevent the framework from freezing its instances and it will generally behave as any other non-Freezable object.

Definition

Constructors

InheritanceContextPropagator()

Declaration

cs-api-definition
public InheritanceContextPropagator()

Methods

CreateInstanceCore()

When implemented in a derived class, creates a new instance of the Freezable derived class.

Declaration

cs-api-definition
protected override Freezable CreateInstanceCore()

Returns

Freezable

The new instance.

FreezeCore(bool)

Makes the Freezable object unmodifiable or tests whether it can be made unmodifiable.

Declaration

cs-api-definition
protected override bool FreezeCore(bool isChecking)

Parameters

isChecking

bool

True to return an indication of whether the object can be frozen (without actually freezing it); false to actually freeze the object.

Returns

bool

If isChecking is true, this method returns true if the Freezable can be made unmodifiable, or false if it cannot be made unmodifiable. If isChecking is false, this method returns true if the if the specified Freezable is now unmodifiable, or false if it cannot be made unmodifiable.