Bewerken

Delen via


Menu

A Menu is a control that allows hierarchical organization of elements associated with commands or event handlers. Each Menu can contain multiple MenuItem controls. Each MenuItem can invoke a command or invoke a Click event handler. A MenuItem can also have multiple MenuItem elements as children, forming a submenu.

The following illustration shows the three different states of a menu control. The default state is when no device such as a mouse pointer is resting on the Menu. The focus state occurs when the mouse pointer is hovering over the Menu and pressed state occurs when a mouse button is clicked over the Menu.

Menu states
Menus in different states

In This Section

Menu Overview

Reference

Menu
MenuItem
MenuBase
ContextMenu