PopupMenuShowingEventArgs.TargetElement Property
Gets the UI element for which the context menu is shown.
Namespace: DevExpress.Xpf.PivotGrid
Assembly: DevExpress.Xpf.PivotGrid.v14.2.dll
#Declaration
#Property Value
Type | Description |
---|---|
IInput |
The element displayed within a pivot grid for which the context menu is shown. |
#Remarks
Depending on the context menu type (PopupMenuShowingEventArgs.MenuType), the TargetElement property returns the following objects.
Cell Menu
The TargetElement property returns the DevExpress.Xpf.PivotGrid.Internal.ScrollableAreaCell object that is the cell for which the context menu is shown.
Field Value Menu
The TargetElement property returns the DevExpress.Xpf.PivotGrid.Internal.FieldValueCellElement object that is the field value for which the context menu is shown.
Field Header Menu
The TargetElement property returns the DevExpress.Xpf.PivotGrid.Internal.FieldHeader object that is the field header for which the context menu is shown.
Field Header Area Menu
The TargetElement property returns the DevExpress.Xpf.PivotGrid.Internal.FieldHeaders object.
To learn more, see Context Menus.