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.
파일 보기 프로젝트 열기: inthehand/Charming

공개 메소드들

메소드 설명
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