Table of Contents

Method OnMenuDisposed

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

OnMenuDisposed(object?, EventArgs)

Handles the disposal of the menu by resetting the Menu property to null.

protected virtual void OnMenuDisposed(object? sender, EventArgs e)

Parameters

sender object

The source of the event, typically the object being disposed.

e EventArgs

An EventArgs instance containing the event data.

Remarks

This method is called when the associated menu is disposed. Subclasses can override this method to provide additional cleanup logic if necessary. Ensure to call the base implementation to maintain the default behavior.