Method OnMenuItemChanged
OnMenuItemChanged(object?, BaseEventArgs<MenuChangeKind>)
Handles changes to attached menu item's properties, such as visibility.
protected virtual void OnMenuItemChanged(object? sender, BaseEventArgs<MenuChangeKind> e)
Parameters
senderobjectThe source of the event, typically an object implementing IMenuItemProperties.
eBaseEventArgs<MenuChangeKind>An event argument containing the type of change, represented by MenuChangeKind.
Remarks
This method is called when attached menu item's state changes. If the change is related to visibility (Visible), the Visible property is updated based on the Visible value of the sender. Derived classes can override this method to provide custom handling for menu item changes. When overriding, ensure the base implementation is called to preserve the default behavior.