ContextMenu Methods

Name Description
Close()

Closes the context menu.

GetFlyoutPlacementBehavior(FlyoutBase)

Gets the value of the ContextMenu.FlyoutPlacementBehavior attached property for a specified flyout element.

GetMenu(DependencyObject)

Gets the value of the ContextMenu.Menu attached property for a specified DependencyObject.

Open()

Opens the context menu.

Open(ContextMenuInfo)

Opens the context menu.

Open(Object, Object, UIElement, Point, String, FlyoutSettingsBase)

Opens the context menu.

Open(Point)

Opens the context menu.

SetFlyoutPlacementBehavior(FlyoutBase, FlyoutPlacementBehavior)

Sets the value of the ContextMenu.FlyoutPlacementBehavior attached property to a specified flyout element.

SetMenu(DependencyObject, ContextMenu)

Sets the value of the ContextMenu.Menu attached property to a specified DependencyObject.