Back to Devexpress

BarManager.DXContextMenuPlacement Attached Property

wpf-devexpress-dot-xpf-dot-bars-dot-barmanager-ce92ce71.md

latest2.1 KB
Original Source

BarManager.DXContextMenuPlacement Attached Property

Gets or sets the position of the UI element’s context menu relative to this element. This is the attached property.

Namespace : DevExpress.Xpf.Bars

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

See GetDXContextMenuPlacement(UIElement) and SetDXContextMenuPlacement(UIElement, PlacementMode).

Returns

TypeDescription
PlacementMode

A PlacementMode enumerator that specifies the position of a UI element’s context menu.

|

Remarks

Use the BarManager.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 BarManager.SetMenuShowMouseButton property to specify exactly which mouse button displays a context menu), a popup is displayed relative to the 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.

See Also

DXContextMenu

SetMenuShowMouseButton(UIElement, ButtonSwitcher)

BarManager Class

BarManager Members

DevExpress.Xpf.Bars Namespace