Skip to main content
A newer version of this page is available. .

TileControl.ItemPress Event

Fires when an end-user presses a TileItem within the current TileControl.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

[DXCategory("Behavior")]
public event TileItemClickEventHandler ItemPress

Event Data

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

Property Description
Item Gets or sets a TileItem that caused firing a related event.

Remarks

Tile items have two event types to respond to an end-user clicking them at runtime: item press and item click events. Immediately after an end-user clicks a tile item, tile item press events are fired. First, the TileItem.ItemPress event is raised. After that, the ItemPress event is fired.

As soon as an end-user releases the left mouse button, the item click event is triggered. The TileItem.ItemClick event is fired first, followed by the TileControl.ItemClick event. Notice that if an end-user starts dragging a tile item, this action only produces item press events. Item click events are never fired in this case.

See Also