SystemBackdrop.OnTargetDisconnected Method

Definition

Called when this object is cleared from its container.

protected:
 virtual void OnTargetDisconnected(ICompositionSupportsSystemBackdrop ^ disconnectedTarget) = OnTargetDisconnected;
void OnTargetDisconnected(ICompositionSupportsSystemBackdrop const& disconnectedTarget);
protected virtual void OnTargetDisconnected(ICompositionSupportsSystemBackdrop disconnectedTarget);
function onTargetDisconnected(disconnectedTarget)
Protected Overridable Sub OnTargetDisconnected (disconnectedTarget As ICompositionSupportsSystemBackdrop)

Parameters

disconnectedTarget
ICompositionSupportsSystemBackdrop

The target of the backdrop.

Examples

See SystemBackdrop for the full example.

protected override void OnTargetDisconnected(ICompositionSupportsSystemBackdrop disconnectedTarget)
{
    base.OnTargetDisconnected(disconnectedTarget);

    micaController.RemoveSystemBackdropTarget(disconnectedTarget);
    micaController = null;
}

Applies to

See also