Click or drag to resize

ModernMenuItem Class

The MVVM style Menu Item used in ModernWindow.
Inheritance Hierarchy

Namespace:  Hummingbird.UI
Assembly:  Hummingbird.UI (in Hummingbird.UI.dll) Version: 1.1.0.0
Syntax
[ContentPropertyAttribute("Items")]
public class ModernMenuItem : Control

The ModernMenuItem type exposes the following members.

Constructors
  NameDescription
Public methodModernMenuItem
Initializes a new instance of the ModernMenuItem class.
Top
Properties
  NameDescription
Public propertyContentType
A subtype of ModernContent, represents the content of this menu item. Hummingbird UI uses MVVM techniques to manage Menu and the instantiation of the content. To increases the performance, once the view is instantiated, it will be cached.
Public propertyHeader
Header of the UI, the text to be shown.
Public propertyIsSelected
If the current menu item is selected.
Public propertyItems
Sub menu items of the current MenuItem.
Public propertyKey
Identifier of the MenuItem. The Key is used especially to navigate to
Top
Fields
  NameDescription
Public fieldStatic memberHeaderProperty
The header property
Public fieldStatic memberIsSelectedProperty
The is selected property
Public fieldStatic memberItemsProperty
The items property
Top
Remarks
ModernWindow has a special menu system with 3 levels: Level 1 and Level 2 is on the top-left corner, showing horizontally. Level 3 is on the left side. Each MenuItem has a header which represents its title, then a ContentType object which holds a Type object. The Type object must be a subclass of ModernContent
See Also