Dela via


XamlCompositionBrushBase.OnDisconnected Method

Definition

Invoked when the brush is no longer being used to paint any elements.

When implemented in a derived class, you can safely dispose of the compostion brush and other composition resources.

OnConnected will be called again if the brush is later used to paint any elements after being disconnected.

protected:
 virtual void OnDisconnected() = OnDisconnected;
void OnDisconnected();
protected virtual void OnDisconnected();
function onDisconnected()
Protected Overridable Sub OnDisconnected ()

Applies to