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#Copypublic class MenuItem : SelectButton, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
- Inheritance
- Implements
Constructors
Declaration
C#Copypublic MenuItem()
API Level: 9
Declaration
C#Copypublic MenuItem(string style)
Parameters
Type | Name | Description |
---|---|---|
String | style | Creates MenuItem by special style defined in UX. |
Declaration
C#Copypublic MenuItem(ButtonStyle style)
Parameters
Type | Name | Description |
---|---|---|
ButtonStyle | style | A style applied to the newly created MenuItem. |
Methods
Declaration
C#Copyprotected 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#Copyprotected 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#Copyprotected override void OnControlStateChanged(View.ControlStateChangedEventArgs controlStateChangedInfo)
Parameters
Type | Name | Description |
---|---|---|
View.ControlStateChangedEventArgs | controlStateChangedInfo |
Overrides
Declaration
C#Copypublic override void OnInitialize()
Overrides
Declaration
C#Copypublic 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. |