windowsforms-devexpress-dot-xtraeditors-dot-svgimagebox-803ae104.md
Fires when a context button is clicked.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.Utils.v25.2.dll
NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core
[DXCategory("Context Buttons")]
public event ContextItemClickEventHandler ContextButtonClick
<DXCategory("Context Buttons")>
Public Event ContextButtonClick As ContextItemClickEventHandler
The ContextButtonClick event's data class is ContextItemClickEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| DataItem | Gets or sets an Object that contains a clicked ContextItem. This object is a control or a control’s item. |
| Item | Gets a clicked ContextItem. |
| ItemInfo | Gets or sets a clicked ContextItem‘s ContextItemViewInfo. |
| ScreenBounds | Returns a Rectangle that contains a ContextItem. |
The ContextButtonClick event fires when a user clicks a context button (see SvgImageBox.ContextButtons). The event’s Item parameter allows you to determine the button that has been clicked.
You can also handle the ContextItem.Click event to respond to a specific button click.
See Also