Back to Devexpress

ContextItem.Click Event

windowsforms-devexpress-dot-utils-dot-contextitem.md

latest2.9 KB
Original Source

ContextItem.Click Event

Fires when the current item is clicked.

Namespace : DevExpress.Utils

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
public event ContextItemClickEventHandler Click
vb
Public Event Click As ContextItemClickEventHandler

Event Data

The Click 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

Handle the Click event to respond to a mouse click on the current ContextItem object.

For the ContextButton and CheckContextButton objects, if the ContextButtonBase.AllowHtmlText setting is enabled, and the button caption contains a hyperlink, a mouse click on the hyperlink also raises the ContextButtonBase.HyperlinkClick event.

For the RatingContextButton, a click on the button also changes its rating (see RatingContextButton.Rating), depending on the position of the mouse cursor over the button.

See Also

ContextItem Class

ContextItem Members

DevExpress.Utils Namespace