Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TileView.ContextButtonClick Event

Occurs whenever an end-user clicks a context button within a TileView tile.

Namespace: DevExpress.XtraGrid.Views.Tile

Assembly: DevExpress.XtraGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

#Declaration

[DXCategory("Context Buttons")]
public event ContextItemClickEventHandler ContextButtonClick

#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

TileView tiles can display content buttons that by default, are visible only when these tiles are hovered (see the figure below). The ContextButtonClick event allows you to process clicking any of these context buttons.

TileView - Context Buttons

See the TileView.ContextButtons property for more info.

See Also