C# Class 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.
Datei anzeigen Open project: inthehand/Charming

Public Methods

Method Description
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.

Private Methods

Method Description
ActionClicked ( UIAlertAction action ) : void
Clicked ( object sender, Android e ) : void

Method Details

PopupMenu() public method

Creates a new instance of the PopupMenu class.
public PopupMenu ( ) : System
return System

ShowAsync() public method

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.
return Task

ShowForSelectionAsync() public method

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.
return Task

ShowForSelectionAsync() public method

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.
return Task