Table of Contents

Class Menu

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Represents the base functionality for all menus.

public abstract class Menu : NonVisualControl, IBaseObjectWithId, IDisposableObject, IBaseObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, INotifyDataErrorInfo
Inheritance
Menu
Implements
Derived

Constructors

Menu()

Initializes a new instance of the Menu class.

Properties

ContentElements

Returns a collection of content elements which is used by the UIXML loader to find content items by index.

ControlKind

Returns control identifier.

IsDummy

Gets whether this control is dummy control.

Items

Gets a collection of MenuItem objects associated with the menu.

LogicalChildrenCollection

Returns a collection of elements which can be treated as "logical children" of this element.

Methods

Add(MenuItem)

Adds item to Items.

Add(string, Action)

Creates and adds new item to Items.

ForEachItem(Action<MenuItem>, bool)

Performs some action for the each element in Items.