Back to Devexpress

RepositoryItemPictureEdit.ContextButtonClick Event

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitempictureedit-e941677c.md

latest3.3 KB
Original Source

RepositoryItemPictureEdit.ContextButtonClick Event

Fires when a context button is clicked.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Context Buttons")]
public event ContextItemClickEventHandler ContextButtonClick
vb
<DXCategory("Context Buttons")>
Public Event ContextButtonClick As ContextItemClickEventHandler

Event Data

The ContextButtonClick event's data class is ContextItemClickEventArgs. The following properties provide information specific to this event:

PropertyDescription
DataItemGets or sets an Object that contains a clicked ContextItem. This object is a control or a control’s item.
ItemGets a clicked ContextItem.
ItemInfoGets or sets a clicked ContextItem‘s ContextItemViewInfo.
ScreenBoundsReturns 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 PictureEdit.ContextButtonClick event is equivalent to the current event.

See Also

Click

ContextButtonClick

ContextButtons

RepositoryItemPictureEdit Class

RepositoryItemPictureEdit Members

DevExpress.XtraEditors.Repository Namespace