Skip to main content

TileControl.ItemClick Event

Fires when a user clicks a tile.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.1.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