Namespace:DevExpress.Xpf.Bars
Assembly:DevExpress.Xpf.Core.v18.1.dll

Syntax
C# |
public static void SetDXContextMenuPlacement(
UIElement element,
PlacementMode value
)
|
VB |
static Public Sub SetDXContextMenuPlacement(
ByVal element As UIElement,
ByVal value As PlacementMode
)
|
Parameters
-
element
-
Type: UIElement
A UIElement object whose DXContextMenuPlacement attached property value is to be set.
-
value
-
Type: PlacementMode
A PlacementMode enumerator value that is the new DXContextMenuPlacement attached property value for a specific UI element.

Remarks
Use the DXContextMenu attached property to assign an IPopupControl object to a UI element as this element's popup or context menu. When invoked by a mouse click (use the SetMenuShowMouseButton method to specify exactly which mouse button displays a context menu), a popup is displayed relative to a cursor position. If invoked via a keyboard Menu (Application) key, the popup's position is specified according to the element's DXContextMenuPlacement attached property value.
The SetDXContextMenuPlacement method sets the DXContextMenuPlacement attached property value for a specific UI element. To get the current context menu's position for an element, use the GetDXContextMenuPlacement method.

See Also