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

LayoutControl.TabPageCloseButtonClick Event

Fires when a Close button within a tab page is clicked.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Events")]
public event LayoutGroupEventHandler TabPageCloseButtonClick

#Event Data

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

Property Description
Group Gets the group currently being processed.

#Remarks

Groups combined into a TabbedGroup are represented as tab pages. In this instance, they can contain Close buttons within page headers. By default, clicking these buttons has no effect, but only fires the TabPageCloseButtonClick event. Handle this event to respond to clicking these buttons. For instance, you can hide the clicked page when its Close button is clicked using the LayoutControlGroup.HideToCustomization method.

To display a Close button within a tab page header, set the LayoutGroup.ShowTabPageCloseButton property to true.

See Also