MenuItem is a control which is added to Menu instances, or as a child of other MenuItems. MenuItems can be created automatically or explicitly when working with a Menu.
The following code shows how to create menu items. Notice that MenuItems can be added to a Menu, or as children of other MenuItems.