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.v20.2.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, DevExpress.Wpf.Core
Declaration
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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetItemData event.
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.