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

TileControl.ItemClick Event

Fires when a user clicks a tile.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

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

#Event Data

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

The following sample toggles the check state (TileItem.Checked) of tiles on left mouse button clicks.

tileControl1.ItemCheckMode = TileItemCheckMode.Multiple;
 tileControl1.ItemClick += tileControl1_ItemClick;

private void tileControl1_ItemClick(object sender, TileItemEventArgs e) {
    e.Item.Checked = !e.Item.Checked;
}

See the TileItem.ItemClick event description for more information.

See Also