Table of Contents

Class TextMenuItemDefinition

Namespace
Gemini.Framework.Menus
Assembly
Gemini.dll

Represents a definition for a menu item that contains text and an icon.

public class TextMenuItemDefinition : MenuItemDefinition
Inheritance
TextMenuItemDefinition
Inherited Members

Constructors

TextMenuItemDefinition(MenuItemGroupDefinition, int, ITranslation, Uri)

Initializes a new instance of the see TextMenuItemDefinition class.

public TextMenuItemDefinition(MenuItemGroupDefinition group, int sortOrder, ITranslation text, Uri iconSource = null)

Parameters

group MenuItemGroupDefinition

Group that contains the menu item.

sortOrder int

Sort order of menu items.

text ITranslation

Text of menu item.

iconSource Uri

Icon of menu item.

Properties

CommandDefinition

Gets the command definition. Returns null.

public override CommandDefinitionBase CommandDefinition { get; }

Property Value

CommandDefinitionBase

IconSource

Gets the icon source.

public override Uri IconSource { get; }

Property Value

Uri

KeyGesture

Gets the key gesture. Returns null.

public override KeyGesture KeyGesture { get; }

Property Value

KeyGesture

Text

Gets the text.

public override string Text { get; }

Property Value

string