Skip to main content

PopupMenuShowingEventArgs Class

Provides data for the PivotGridControl.PopupMenuShowing event.

Namespace: DevExpress.Xpf.PivotGrid

Assembly: DevExpress.Xpf.PivotGrid.v24.1.dll

NuGet Package: DevExpress.Wpf.PivotGrid

Declaration

public class PopupMenuShowingEventArgs :
    RoutedEventArgs

Remarks

The PivotGridControl.PopupMenuShowing event is raised when an end-user invokes a context menu, allowing you to customize this menu.

Use the PopupMenuShowingEventArgs.Customizations property to add new and remove existing menu items. This property provides access to a collection of actions that allow you to customize the context menu. To learn more, see Context Menus, Items and Links and Bar Actions.

To determine for what kind of pivot grid element (a cell, a field value, a field header or the field header area) the menu has invoked, use the PopupMenuShowingEventArgs.MenuType property. To obtain the actual visual element for which the menu is invoked, use the PopupMenuShowingEventArgs.TargetElement property.

Use the following methods to obtain additional information about this visual element.

PopupMenuShowingEventArgs.GetCellInfo

Returns information about the cell for which the menu is invoked.

PopupMenuShowingEventArgs.GetFieldValueInfo

Returns information about the field value for which the menu is invoked.

PopupMenuShowingEventArgs.GetFieldInfo

Returns information about the field for whose header the menu is invoked.

Inheritance

Object
EventArgs
RoutedEventArgs
PopupMenuShowingEventArgs
See Also