To use this sample:
After you select one of the items from the menu, that item’s icon is shown on the toolbar. The second button also demonstrates submenus.
Viewing Details: