PictureEdit.ContextButtonClick Event
Fires when a context button is clicked.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.2.dll
Declaration
Event Data
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. |
Remarks
The ContextButtonClick event fires when an end-user clicks any context button displayed in the current editor (see RepositoryItemPictureEdit.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 editor’s ContextButtonClick event is equivalent to the RepositoryItemPictureEdit.ContextButtonClick event available using the PictureEdit.Properties property.