Skip to main content
Bar

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BarSubItem.GetItemData Event

Allows you to populate the BarSubItem with items dynamically, before the BarSubItem’s dropdown is opened.

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

#Declaration

public event EventHandler GetItemData

#Event Data

The GetItemData event's data class is EventArgs.

#Remarks

When a BarSubItem’s dropdown is about to be displayed, the GetItemData event fires. You can handle this event to populate the item’s dropdown with bar item links dynamically.

The BarSubItem object being processed is specified by the event’s sender parameter. To provide bar item links for the BarSubItem, use the BarSubItem.ItemLinks collection.

See Also