GraffitiMenuItem

View Categories

Preview #

About #

GraffitiMenuItem is designed to provide a popup menu-like replacement for DesktopMenuItem in the mobile experience. On small form factor devices, the menu will be shown as a sheet window, and on large devices it will appear as a popover.

Delegates #

NameParametersReturn TypeDescription
ItemSelectedDelegateitem as GraffitiMenuItemNoneCan be passed to the matching constructor for a top-level GraffitiMenuItem to be invoked upon child item selection.

Enumerations #

This class exposes no enumerations.

Constants #

This class exposes no constants.

Events #

NameParametersReturn TypeDescription
ItemSelecteditem as GraffitiMenuItemNoneRaised when an item has been selected.

Methods #

NameParametersReturn TypeDescription
Additem as GraffitiMenuItemNoneAdds a new item.
AddAtindex as Integer
item as GraffitiMenuItem
NoneAdds a new item at the specified index.
ConstructorNoneNoneCreates a new instance of the class.
Constructortext as StringNoneCreates a new instance of the class.
Constructortext as String
onSelected as ItemSelectedDelegate
NoneCreates a new instance of the class.
IndexOfitem as GraffitiMenuItemIntegerReturns the index of the specified item.
InvalidateAllNoneNoneCauses the component to destroy all cached images of items and redraw fresh.
ItemAtindex as IntegerGraffitiMenuItemReturns the item at the specified index.
LastIndexNoneIntegerReturns the last index of the items array.
ParentItemNoneGraffitiMenuItemReturns the parent GraffitiMenuItem of this instance.
Removeitem as GraffitiMenuItemNoneRemoves the specified item.
RemoveAllNoneNoneRemoves all items from the component.
RemoveAtindex as IntegerNoneRemoves the item at the specified index.
ShowAtscreen as MobileScreen
location as Point
NoneShows the menu at the specified location on the provided screen.
ShowOnbutton as MobileToolbarButtonNoneShows the menu at the specified MobileToolbarButton.
ShowOncontrol as MobileUIControlNoneShow menu at the specified MobileUIControl.

Properties #

NameTypeDefault ValueDescription
BackItemTextString“Back”Text displayed in the item that allows backward traversal in the menu system.
CheckedBooleanFalseItem will be checked when True.
DetailTextString“”String displayed below the Text of the item in the menu.
HasSearchBooleanTrueControl the visibility and functionality of the built-in search functionality.
ImagePictureNilImage displayed in the item’s cell on the menu’s view.
TagVariantNilDeveloper storage.
TextString“”String displayed in the menu.