windowsforms-devexpress-dot-xtrabars-dot-bar-9a85206b.md
Fires immediately after a link has been added to the bar.
Namespace : DevExpress.XtraBars
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
public event LinkEventHandler LinkAdded
Public Event LinkAdded As LinkEventHandler
The LinkAdded event's data class is LinkEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| Link | Gets the link associated with the event. |
Write a LinkAdded event handler to perform specific actions each time a link is added to the Bar.ItemLinks collection of the bar. Links can be added to bars at runtime using the following methods:
If you want to respond to links being added to context menus or sub-menus, handle the PopupMenuBase.LinkAdded and BarLinkContainerItem.LinkAdded events respectively.
See Also