LayoutControl.TabPageCloseButtonClick Event
Fires when a Close button within a tab page is clicked.
Namespace: DevExpress.XtraLayout
Assembly: DevExpress.XtraLayout.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
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.