Class MenuItem
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
MenuItem is a class which is used to show a list of items in Menu.
public class MenuItem : SelectButton, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
- Inheritance
- Implements
-
System.IDisposable
Constructors
View SourceMenuItem()
Creates a new instance of MenuItem.
Declaration
public MenuItem()
MenuItem(string)
Creates a new instance of MenuItem.
Declaration
public MenuItem(string style)
Parameters
| Type | Name | Description |
|---|---|---|
| string | style | Creates MenuItem by special style defined in UX. |
MenuItem(ButtonStyle)
Creates a new instance of a MenuItem with style.
Declaration
public MenuItem(ButtonStyle style)
Parameters
| Type | Name | Description |
|---|---|---|
| ButtonStyle | style | A style applied to the newly created MenuItem. |
Methods
View SourceDispose(DisposeTypes)
Dispose SelectButton and all children on it.
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
| Type | Name | Description |
|---|---|---|
| DisposeTypes | type | Dispose type. |
Overrides
View SourceHandleControlStateOnTouch(Touch)
The touch event handler for ControlState. Please change ControlState value by touch state if needed.
Declaration
protected override bool HandleControlStateOnTouch(Touch touch)
Parameters
| Type | Name | Description |
|---|---|---|
| Touch | touch |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
View SourceOnControlStateChanged(ControlStateChangedEventArgs)
Called after the View's ControlStates changed.
Declaration
protected override void OnControlStateChanged(View.ControlStateChangedEventArgs controlStateChangedInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| View.ControlStateChangedEventArgs | controlStateChangedInfo |
Overrides
View SourceOnInitialize()
Initialize AT-SPI object.
Declaration
public override void OnInitialize()
Overrides
View SourceOnKey(Key)
Called after a key event is received by the view that has had its focus set.
Declaration
public override bool OnKey(Key key)
Parameters
| Type | Name | Description |
|---|---|---|
| Key | key | The key event. |
Returns
| Type | Description |
|---|---|
| bool | True if the key event should be consumed. |
Overrides
Implements
System.IDisposable