wpf-devexpress-dot-xpf-dot-pivotgrid-dot-popupmenushowingeventargs-7e2014e4.md
Gets the UI element for which the context menu is shown.
Namespace : DevExpress.Xpf.PivotGrid
Assembly : DevExpress.Xpf.PivotGrid.v25.2.dll
NuGet Package : DevExpress.Wpf.PivotGrid
public IInputElement TargetElement { get; }
Public ReadOnly Property TargetElement As IInputElement
| Type | Description |
|---|---|
| IInputElement |
The element displayed within a pivot grid for which the context menu is shown.
|
To learn more, see Context Menus.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TargetElement property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
{
FieldValueElement fvElement = e.TargetElement as FieldValueElement;
if (fvElement == null) return;
Private Sub pivotGridControl1_PopupMenuShowing(ByVal sender As Object, ByVal e As PopupMenuShowingEventArgs)
Dim fvElement As FieldValueElement = TryCast(e.TargetElement, FieldValueElement)
If fvElement Is Nothing Then
See Also
PopupMenuShowingEventArgs Class