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.
Afficher le fichier Open project: inthehand/Charming

Méthodes publiques

Méthode 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

Méthode Description
ActionClicked ( UIAlertAction action ) : void
Clicked ( object sender, Android e ) : void

Method Details

PopupMenu() public méthode

Creates a new instance of the PopupMenu class.
public PopupMenu ( ) : System
Résultat System

ShowAsync() public méthode

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.
Résultat Task

ShowForSelectionAsync() public méthode

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.
Résultat Task

ShowForSelectionAsync() public méthode

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.
Résultat Task