SystemBackdrop.OnTargetDisconnected 方法

定义

从其容器中清除此对象时调用。

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)

参数

disconnectedTarget
ICompositionSupportsSystemBackdrop

背景的目标。

示例

有关完整示例,请参阅 SystemBackdrop

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

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

适用于

另请参阅