Menu for WPF | ComponentOne
Menu Overview / Flat Menu / Menu Elements
In This Topic
    Menu Elements
    In This Topic

    The Menu control  is represented by the C1Menu class that allows hierarchical organization of elements associated with event handlers. The menus can be nested to any depth that you desire, and you can add as many items to the menu as you need to add.

    The following image diagrams the elements of the C1Menu control.

    The elements of the C1Menu control can be described as follows:

    The main menu is a horizontal, top-level menu. It is comprised of first-level C1MenuItems and can hold any feature available to C1MenuItems.

    Submenus are menus that can only be accessed from other menus. A submenu is created when you nest a C1MenuItem within another C1MenuItem.

    Menu items are represented by the C1MenuItem class. Menu items can have labels and icons, and they can also be specified as checkable menu items. Each menu item is associated with a click event handler.

    Checkable menu items are objects of the C1MenuItem class that can be selected or cleared by users. You can make checkable menu items standalone, or you can group them with other checkable menu items to create a list of mutually exclusive check boxes. Checkable menu items can't be used in the menu bar.

    Icons are created by adding an Image control to the Icon property. Icons can't be used in the menu bar.

    Separators are created through the C1MenuSeparator class. Icons can't be used in the menu bar.

    See Also