| mi.Click+=newRoutedEventHandler(mi_Click); |
| voidmi_Click(objectsender,RoutedEventArgse) |
| { |
| //code |
| } |
Most Components have events that are added and deleted using applicable operators (+,+=,-,-=). You append a void *EventHandler class to the Click Event Handler, and then create and code that method.
ContextMenu does not have this event.