Skip to main content

RepositoryItemMRUEdit.RemovingMRUItem Event

Occurs before an item is removed from the MRU edit.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DXCategory("Events")]
public event RemovingMRUItemEventHandler RemovingMRUItem

Event Data

The RemovingMRUItem event's data class is DevExpress.XtraEditors.Controls.RemovingMRUItemEventArgs.

Remarks

An end-user can remove an item from the MRU edit by clicking the delete button in the drop-down. See the figure below.

MRUEdit_DeleteItem

Before the item is removed from the MRU edit, the RemovingMRUItem event fires, allowing you to cancel the action. To do this, set the RemovingMRUItemEventArgs.Cancel property to true. The RemovingMRUItemEventArgs.Item property returns the item being processed.

Note

The RemovingMRUItem event is not raised if an item is removed from the RepositoryItemMRUEdit.Items collection programmatically.

See Also