Class MenuItem

Definition

Namespace:
Tizen.NUI.Components
Assembly:
Tizen.NUI.Components.dll
API Level:
9

MenuItem is a class which is used to show a list of items in Menu.

C#
Copy
public class MenuItem : SelectButton, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
Inheritance
Implements

Constructors

View Source

MenuItem()

Creates a new instance of MenuItem.

Declaration
C#
Copy
public MenuItem()
API Level: 9
View Source

MenuItem(String)

Creates a new instance of MenuItem.

Declaration
C#
Copy
public MenuItem(string style)
Parameters
Type Name Description
String style

Creates MenuItem by special style defined in UX.

View Source

MenuItem(ButtonStyle)

Creates a new instance of a MenuItem with style.

Declaration
C#
Copy
public MenuItem(ButtonStyle style)
Parameters
Type Name Description
ButtonStyle style

A style applied to the newly created MenuItem.

Methods

View Source

Dispose(DisposeTypes)

Dispose SelectButton and all children on it.

Declaration
C#
Copy
protected override void Dispose(DisposeTypes type)
Parameters
Type Name Description
DisposeTypes type

Dispose type.

Overrides
View Source

HandleControlStateOnTouch(Touch)

The touch event handler for ControlState. Please change ControlState value by touch state if needed.

Declaration
C#
Copy
protected override bool HandleControlStateOnTouch(Touch touch)
Parameters
Type Name Description
Touch touch
Returns
Type Description
Boolean
Overrides
View Source

OnControlStateChanged(View.ControlStateChangedEventArgs)

Called after the View's ControlStates changed.

Declaration
C#
Copy
protected override void OnControlStateChanged(View.ControlStateChangedEventArgs controlStateChangedInfo)
Parameters
Type Name Description
View.ControlStateChangedEventArgs controlStateChangedInfo
Overrides
View Source

OnInitialize()

Initialize AT-SPI object.

Declaration
C#
Copy
public override void OnInitialize()
Overrides
View Source

OnKey(Key)

Called after a key event is received by the view that has had its focus set.

Declaration
C#
Copy
public override bool OnKey(Key key)
Parameters
Type Name Description
Key key

The key event.

Returns
Type Description
Boolean

True if the key event should be consumed.

Overrides

Implements

Extension Methods