Skip to main content
A newer version of this page is available. .

BaseListBoxControl.ContextButtonClick Event

Fires when a context button is clicked.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

[DXCategory("Behavior")]
public event ContextItemClickEventHandler ContextButtonClick

Event Data

The ContextButtonClick event's data class is DevExpress.Utils.ContextItemClickEventArgs.

Remarks

The ContextButtonClick event fires when an end-user clicks any context button displayed in the BaseListBoxControl (see BaseListBoxControl.ContextButtons). The ContextItemClickEventArgs.Item property allows you to determine the button being clicked. Handling the ContextButtonClick event allows you to respond to button clicks in a centralized way. You can also handle the ContextItem.Click event to respond to a click on a particular button.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ContextButtonClick 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.

See Also