Skip to main content

DXTabControl.NewTabbedWindow Event

Fires when a new window is created by dropping the dragged tab item outside the parent DXTabControl.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

public event TabControlNewTabbedWindowEventHandler NewTabbedWindow

Event Data

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

Property Description
NewTabControl Gets or sets the new tab control with its settings.
NewWindow Gets or sets the new window with its settings.
SourceData Returns the source data used to create the tab item or the tab item object itself if the data context is not specified.
SourceTabControl Get the source tab control.
SourceWindow Gets the source window.

The event data class exposes the following methods:

Method
CalcNewWindowPosition()

Remarks

The created window type matches the parent window type.

To obtain and configure the newly created window or its embedded DXTabControl, use the parameter’s TabControlNewTabbedWindowEventArgs.NewWindow and TabControlNewTabbedWindowEventArgs.NewTabControl properties. You can also specify styles for these elements using the TabControlStretchView.NewTabControlStyle and TabControlStretchView.NewWindowStyle properties.

See Also