In This Article

TabbedMdiContainer Class

Represents a container of one or more documents in tabbed MDI.

public class TabbedMdiContainer : DockingWindowContainerBase, IDockTarget, IOrientedElement
Inheritance:
object Visual UIElement FrameworkElement Control DockingWindowContainerBase object
Implements:
IDockTarget IOrientedElement

Constructors

TabbedMdiContainer()

Initializes an instance of the TabbedMdiContainer class.

public TabbedMdiContainer()

Properties

HasNewTabButton

Gets or sets whether a new tab button is available.

public bool HasNewTabButton { get; set; }

Property Value

bool:

true if a new tab button is visible; otherwise, false. The default value is false.

HasTabCloseButtons

Gets or sets whether close buttons should appear on document tabs.

public bool HasTabCloseButtons { get; set; }

Property Value

bool:

true if close buttons should appear on document tabs; otherwise, false. The default value is true.

HasTabPinButtons

Gets or sets whether pin buttons should appear on document tabs (normal layout kind).

public bool HasTabPinButtons { get; set; }

Property Value

bool:

true if pin buttons should appear on document tabs (normal layout kind); otherwise, false. The default value is false.

HasTabPromoteButtons

Gets or sets whether promote buttons should appear on document tabs (preview layout kind).

public bool HasTabPromoteButtons { get; set; }

Property Value

bool:

true if promote buttons should appear on document tabs (preview layout kind); otherwise, false. The default value is true.

Windows

Gets the collection of child DockingWindow objects.

public ObservableCollection<DockingWindow> Windows { get; }

Property Value

ObservableCollection<DockingWindow>:

The collection of child DockingWindow objects.

Methods

OnCreateAutomationPeer()

Returns an AutomationPeer object for this control instance.

protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer:

An AutomationPeer instance.

OnDockSiteChanged(DockSite, DockSite)

Occurs when the DockSite property is changed.

protected override void OnDockSiteChanged(DockSite oldDockSite, DockSite newDockSite)
Parameter Type Description
oldDockSite DockSite

The old value.

newDockSite DockSite

The new value.

OnKeyDown(KeyEventArgs)

Occurs when a key is pressed.

protected override void OnKeyDown(KeyEventArgs e)
Parameter Type Description
e KeyEventArgs

The KeyEventArgs that contains the event data.

OnSelectedWindowChanged(DockingWindow, DockingWindow)

Occurs when the SelectedWindow property is changed.

protected override void OnSelectedWindowChanged(DockingWindow oldSelectedWindow, DockingWindow newSelectedWindow)
Parameter Type Description
oldSelectedWindow DockingWindow

The old selected window.

newSelectedWindow DockingWindow

The new selected window.

OnTabControlMenuOpening(AdvancedTabControlMenuEventArgs)

Occurs when a menu on the tab control is opening.

protected override void OnTabControlMenuOpening(AdvancedTabControlMenuEventArgs e)
Parameter Type Description
e AdvancedTabControlMenuEventArgs

The AdvancedTabControlMenuEventArgs that contains the event data.

OnWindowsChanged(NotifyCollectionChangedEventArgs)

Occurs when the Windows collection is changed.

protected override void OnWindowsChanged(NotifyCollectionChangedEventArgs e)
Parameter Type Description
e NotifyCollectionChangedEventArgs

A NotifyCollectionChangedEventArgs that contains the event data.

UpdateDockingWindowStates()

Updates the DockingWindowState associated with all child docking windows.

protected override void UpdateDockingWindowStates()

Fields

HasNewTabButtonProperty

Identifies the HasNewTabButton dependency property. This field is read-only.

public static readonly DependencyProperty HasNewTabButtonProperty

HasTabCloseButtonsProperty

Identifies the HasTabCloseButtons dependency property. This field is read-only.

public static readonly DependencyProperty HasTabCloseButtonsProperty

HasTabPinButtonsProperty

Identifies the HasTabPinButtons dependency property. This field is read-only.

public static readonly DependencyProperty HasTabPinButtonsProperty

HasTabPromoteButtonsProperty

Identifies the HasTabPromoteButtons dependency property. This field is read-only.

public static readonly DependencyProperty HasTabPromoteButtonsProperty

Inherited Members