The requested page is not available for the requested platform. You are viewing the content for Default platform.

ContextMenu Methods

Represents a flyout menu that can be attached to any visual element.

Name Description
Close()

Closes the context menu.

Equals(Object) Determines whether the specified object is equal to the current object.
(Inherited from Object)
Equals(Object, Object) Determines whether the specified object instances are considered equal.
(Inherited from Object)
GetFlyoutPlacementBehavior(FlyoutBase)

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

GetHashCode() Serves as the default hash function.
(Inherited from Object)
GetMenu(DependencyObject)

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

GetType() Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone() Creates a shallow copy of the current Object.
(Inherited from Object)
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.

ReferenceEquals(Object, Object) Determines whether the specified Object instances are the same instance.
(Inherited from Object)
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.

ToString() Returns a string that represents the current object.
(Inherited from Object)
See Also