Method OnMenuDisposed
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
senderobjectThe source of the event, typically the object being disposed.
eEventArgsAn 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.