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

BaseLayoutItem.Click Event

Fires when the current item is clicked.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Action")]
public event EventHandler Click

#Event Data

The Click event's data class is EventArgs.

#Remarks

To perform specific actions when any item is clicked, you can handle the LayoutControl’s MouseClick event, rather than handle the Click event for each layout item. While handling the Click event, you may need to identify the item that has been clicked. To do this, get hit information on the clicked point via the LayoutControl.CalcHitInfo method. The BaseLayoutItemHitInfo.Item property will refer to the target item.

See Also