Back to Devexpress

FieldValueElementData.IsLastLevelItem Property

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-fieldvalueelementdata-175d0166.md

latest2.7 KB
Original Source

FieldValueElementData.IsLastLevelItem Property

Gets whether the visual element that corresponds to the field value is the last level item.

Namespace : DevExpress.Xpf.PivotGrid

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

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public bool IsLastLevelItem { get; }
vb
Public ReadOnly Property IsLastLevelItem As Boolean

Property Value

TypeDescription
Boolean

true if the visual element is the last level item; otherwise, false.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IsLastLevelItem 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.

wpf-pivot-grid-show-top-n-values-in-context-menu/CS/ContextMenuToShowTopN_Example/MainWindow.xaml.cs#L52

csharp
FieldValueElementData valueItem = fvElement.ElementData as FieldValueElementData;
if (valueItem.IsLastLevelItem)
{

wpf-pivot-grid-show-top-n-values-in-context-menu/VB/ContextMenuToShowTopN_Example/MainWindow.xaml.vb#L50

vb
Dim valueItem As FieldValueElementData = TryCast(fvElement.ElementData, FieldValueElementData)
If valueItem.IsLastLevelItem Then
    Dim itemCaption As String = String.Format("Top 5 Values in this {0}",If(valueItem.IsColumn, "Column", "Row"))

See Also

FieldValueElementData Class

FieldValueElementData Members

DevExpress.Xpf.PivotGrid Namespace