C# Класс InTheHand.UI.Popups.PopupMenu

Represents a context menu.
Context menus can show a maximum of six commands. This limit helps to ensure that the context menu remains uncluttered, usable, and directly relevant to users.
Показать файл Открыть проект

Открытые методы

Метод Описание
PopupMenu ( ) : System

Creates a new instance of the PopupMenu class.

ShowAsync ( Point invocationPoint ) : Task

Shows the context menu at the specified client coordinates.

ShowForSelectionAsync ( Rect selection ) : Task

Shows the context menu by the specified selection.

ShowForSelectionAsync ( Rect selection, Placement preferredPlacement ) : Task

Shows the context menu in the preferred placement relative to the specified selection.

Приватные методы

Метод Описание
ActionClicked ( UIAlertAction action ) : void
Clicked ( object sender, Android e ) : void

Описание методов

PopupMenu() публичный Метод

Creates a new instance of the PopupMenu class.
public PopupMenu ( ) : System
Результат System

ShowAsync() публичный Метод

Shows the context menu at the specified client coordinates.
public ShowAsync ( Point invocationPoint ) : Task
invocationPoint Point The coordinates (in DIPs), relative to the window, of the user's finger or mouse pointer when the oncontextmenu event fired. /// The menu is placed above and centered on this point.
Результат Task

ShowForSelectionAsync() публичный Метод

Shows the context menu by the specified selection.
public ShowForSelectionAsync ( Rect selection ) : Task
selection InTheHand.Foundation.Rect The coordinates (in DIPs) of the selected rectangle, relative to the window.
Результат Task

ShowForSelectionAsync() публичный Метод

Shows the context menu in the preferred placement relative to the specified selection.
public ShowForSelectionAsync ( Rect selection, Placement preferredPlacement ) : Task
selection InTheHand.Foundation.Rect The coordinates (in DIPs) of the selected rectangle, relative to the window.
preferredPlacement Placement The preferred placement of the context menu relative to the selection rectangle.
Результат Task