Skip to main content
Bar

TabFormControlBase.OuterFormCreated Event

Fires after an outer form has been created (as a result of dragging a tab outside the main form).

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

Declaration

public event OuterFormCreatedEventHandler OuterFormCreated

Event Data

The OuterFormCreated event's data class is DevExpress.XtraBars.OuterFormCreatedEventArgs.

Remarks

If the TabFormControlBase.AllowMoveTabsToOuterForm property is set to true, end-users are allowed to drag a tab out of the current TabForm to display it in a separate TabForm.

When a new separate TabForm containing the dragged tab is about to be created, the TabFormControlBase.OuterFormCreating event fires, allowing you to provide a custom TabForm. The OuterFormCreated event fires when the TabForm has been created and is about to be shown. The OuterFormCreatedEventArgs.Form property provides access to the new separate TabForm. The TabFormControlBase.Pages collection of the TabFormControl displayed in the new separate TabForm contains the page being dragged.

The code snippet below shows how to customize the new separate TabForm using the OuterFormCreated event.

private void tabFormControl1_OuterFormCreated(object sender, DevExpress.XtraBars.OuterFormCreatedEventArgs e){
    e.Form.Width = 800;
    e.Form.Height = 600;
    e.Form.TabFormControl.ShowTabsInTitleBar = DevExpress.XtraBars.ShowTabsInTitleBar.True;
    e.Form.TabFormControl.TitleTabVerticalOffset = 7;
}
See Also