TileItem.ItemClick Event
Fires when a user clicks the current tile.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.2.dll
Declaration
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
Handle the ItemClick or TileControl.ItemClick event to respond to a click on a specific tile. The ItemClick events fire after the TileItem.ItemPress and TileControl.ItemPress events.
When a user starts to drag a tile, the ItemPress events fire. The ItemClick events do not fire in this case.
The TileItem.PerformItemClick and TileItem.PerformRightItemClick methods allow you to raise the ItemClick and RightItemClick (TileControl.RightItemClick/TileItem.RightItemClick) events in code.
The TileItem.RightItemClick event is not fired for check items (see the TileControl.ItemCheckMode property description).
If your users use touch screens, and you want to handle the ItemClick event to display a modal window when a user taps on a touch screen, wrap your code that displays the modal window within the Control.BeginInvoke method. For example, you can use the following code:
private void tileItem1_ItemClick(object sender, TileItemEventArgs e) {
this.BeginInvoke(new MethodInvoker(delegate {
(new Form2()).ShowDialog();
}));
}