Back to Devexpress

PopupMenuShowingEventArgs.GetFieldInfo() Method

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-popupmenushowingeventargs-5a78f2c8.md

latest2.2 KB
Original Source

PopupMenuShowingEventArgs.GetFieldInfo() Method

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

Namespace : DevExpress.Xpf.PivotGrid

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

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public virtual PivotFieldEventArgs GetFieldInfo()
vb
Public Overridable Function GetFieldInfo As PivotFieldEventArgs

Returns

TypeDescription
PivotFieldEventArgs

A PivotFieldEventArgs object that contains information about the field for whose header the menu is invoked.

|

Remarks

For context menus invoked for cells, field values and the field header area, the GetFieldInfo method returns null ( Nothing in Visual Basic).

To determine for what kind of pivot grid element the menu is invoked, use the PopupMenuShowingEventArgs.MenuType property. The PopupMenuShowingEventArgs.TargetElement property returns the actual UI element for which the menu is invoked.

To learn more, see Context Menus.

See Also

MenuType

TargetElement

Context Menus

PopupMenuShowingEventArgs Class

PopupMenuShowingEventArgs Members

DevExpress.Xpf.PivotGrid Namespace