Bar.LinkDeleted Event
Fires immediately after a link has been removed from the bar.
Namespace: DevExpress.XtraBars
Assembly: DevExpress.XtraBars.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
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