Table of Contents

Class MenuDefinition

Namespace
Gemini.Framework.Menus
Assembly
Gemini.dll

Represents the definition of a menu.

public class MenuDefinition : MenuDefinitionBase
Inheritance
MenuDefinition
Inherited Members

Constructors

MenuDefinition(MenuBarDefinition, int, ITranslation)

Initializes a new instance of the MenuDefinition class.

public MenuDefinition(MenuBarDefinition menuBar, int sortOrder, ITranslation text)

Parameters

menuBar MenuBarDefinition

Menu bar to which this menu definition belongs

sortOrder int

Sort order.

text ITranslation

Menu text.

Exceptions

ArgumentNullException

Thrown menuBar is null.

Properties

CommandDefinition

Gets the command definition. Returns null.

public override CommandDefinitionBase CommandDefinition { get; }

Property Value

CommandDefinitionBase

IconSource

Gets the URI for the icon. Returns null.

public override Uri IconSource { get; }

Property Value

Uri

KeyGesture

Gets key gesture associated with this item. Returns null.

public override KeyGesture KeyGesture { get; }

Property Value

KeyGesture

MenuBar

Gets the definition of the menu bar to which this menu definition belongs.

public MenuBarDefinition MenuBar { get; }

Property Value

MenuBarDefinition

SortOrder

Gets the sort order.

public override int SortOrder { get; }

Property Value

int

Text

Gets the text of this item.

public override string Text { get; }

Property Value

string