Back to Devexpress

PopupMenuShowingEventArgs Class

wpf-devexpress-dot-xpf-dot-pivotgrid-95bdbdfb.md

latest3.4 KB
Original Source

PopupMenuShowingEventArgs Class

Provides data for the PivotGridControl.PopupMenuShowing event.

Namespace : DevExpress.Xpf.PivotGrid

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

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public class PopupMenuShowingEventArgs :
    RoutedEventArgs
vb
Public Class PopupMenuShowingEventArgs
    Inherits RoutedEventArgs

PopupMenuShowingEventArgs is the data class for the following events:

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

PopupMenuShowingEventArgs Members

DevExpress.Xpf.PivotGrid Namespace