Skip to main content

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

Bar.LinkDeleted Event

Fires immediately after a link has been removed from the bar.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public event LinkEventHandler LinkDeleted

#Event Data

The LinkDeleted 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.

#Remarks

Write a LinkDeleted event handler to perform specific actions each time a link is removed from the bar. Links can be removed from a bar at runtime in the following ways:

  • Programmatically, using the Bar.RemoveLink method of a bar.
  • By end-users via drag and drop operations on links. (Links can be removed from a bar by dragging them to the Customization window or by dragging them to other bars. Links can be dragged from bar to bar when the ALT key is pressed.)

If you want to respond to links being deleted from context menus and sub-menus, handle the PopupMenuBase.LinkDeleted and BarLinkContainerItem.LinkDeleted events respectively.

See Also