Class Menu
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
- API Level:
- 9
Menu is a class which contains a set of MenuItems and has one of them selected.
C#Copypublic class Menu : Control, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable, IResourcesProvider
- Inheritance
-
System.ObjectTizen.NUI.Binding.ElementTizen.NUI.Components.ControlMenu
- Implements
-
System.ComponentModel.INotifyPropertyChangedSystem.IDisposable
Constructors
Declaration
C#Copypublic Menu()
API Level: 9
Properties
Anchor
Anchor of Menu. Menu is displayed at the anchor's position. If there is not enough space to display menu at the anchor's position, then menu is displayed at the proper position near anchor's position.
Declaration
C#Copypublic View Anchor { get; set; }
Property Value
Type | Description |
---|---|
View |
API Level: 9
HorizontalPositionToAnchor
The horizontal position of Menu relative to Anchor. If Anchor is not set, then RelativePosition does not work. If RelativePosition is Start, then Menu is displayed at the start of Anchor. If RelativePosition is Center, then Menu is displayed at the center of Anchor. If RelativePosition is End, then Menu is displayed at the end of Anchor. If there is not enough space to display menu at the anchor's position, then menu is displayed at the proper position near anchor's position.
Declaration
C#Copypublic Menu.RelativePosition HorizontalPositionToAnchor { get; set; }
Property Value
Type | Description |
---|---|
Menu.RelativePosition |
API Level: 9
Items
Menu items in Menu. Menu items are not automatically disposed when Menu is disposed. Therefore, please dispose Menu items when you dispose Menu.
Declaration
C#Copypublic IEnumerable<MenuItem> Items { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<MenuItem> |
API Level: 9
VerticalPositionToAnchor
The vertical position of Menu relative to Anchor. If Anchor is not set, then RelativePosition does not work. If RelativePosition is Start, then Menu is displayed at the start of Anchor. If RelativePosition is Center, then Menu is displayed at the center of Anchor. If RelativePosition is End, then Menu is displayed at the end of Anchor. If there is not enough space to display menu at the anchor's position, then menu is displayed at the proper position near anchor's position.
Declaration
C#Copypublic Menu.RelativePosition VerticalPositionToAnchor { get; set; }
Property Value
Type | Description |
---|---|
Menu.RelativePosition |
API Level: 9
Methods
Declaration
C#Copypublic void Dismiss()
API Level: 9
Declaration
C#Copypublic void Post(Window window = null)
Parameters
Type | Name | Description |
---|---|---|
Window | window | The Window where Menu is displayed. |