Back to Devexpress

DXTabControl.NewTabbedWindow Event

wpf-devexpress-dot-xpf-dot-core-dot-dxtabcontrol-df923252.md

latest2.8 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public event TabControlNewTabbedWindowEventHandler NewTabbedWindow
vb
Public Event NewTabbedWindow As TabControlNewTabbedWindowEventHandler

Event Data

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

PropertyDescription
NewTabControlGets or sets the new tab control with its settings.
NewWindowGets or sets the new window with its settings.
SourceDataReturns the source data used to create the tab item or the tab item object itself if the data context is not specified.
SourceTabControlGet the source tab control.
SourceWindowGets 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

DXTabControl Class

DXTabControl Members

DevExpress.Xpf.Core Namespace