Composition Brush Base. On Disconnected 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.
protected: virtual void OnDisconnected() = OnDisconnected;
protected virtual void OnDisconnected();
Protected Overridable Sub OnDisconnected ()