Method OnMenuItemsCollectionChanged
OnMenuItemsCollectionChanged(object?, NotifyCollectionChangedEventArgs)
Handles changes to the attached menu items collection.
protected virtual void OnMenuItemsCollectionChanged(object? sender, NotifyCollectionChangedEventArgs e)
Parameters
senderobjectThe source of the collection change event. This may be null.
eNotifyCollectionChangedEventArgsThe event data containing details about the collection change.
Remarks
This method is called whenever the menu items collection is modified. Subclasses can override this method to provide custom handling for collection changes.