XamlCompositionBrushBase.OnDisconnected Method


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.

Equivalent WinUI method: Microsoft.UI.Xaml.Media.XamlCompositionBrushBase.OnDisconnected.

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

Applies to