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 class.

public TabbedMdiContainer()

Properties

HasNewTabButton

Indicates whether a new tab button is available.

public bool HasNewTabButton { get; set; }

Property Value

bool:

The default value is false.

HasTabCloseButtons

Indicates whether close buttons should appear on document tabs.

public bool HasTabCloseButtons { get; set; }

Property Value

bool:

The default value is true.

HasTabPinButtons

Indicates whether pin buttons should appear on document tabs (normal layout kind).

public bool HasTabPinButtons { get; set; }

Property Value

bool:

The default value is false.

HasTabPromoteButtons

Indicates whether promote buttons should appear on document tabs (preview layout kind).

public bool HasTabPromoteButtons { get; set; }

Property Value

bool:

The default value is true.

OpenContextMenuKeyGesture

The KeyGesture that is used to invoke the OpenContextMenu() method by default.

public KeyGesture? OpenContextMenuKeyGesture { get; set; }

Property Value

KeyGesture:

The default value is Alt+-.

OpenTabMenuKeyGesture

The KeyGesture that is used to invoke the OpenTabMenu() method by default.

public KeyGesture? OpenTabMenuKeyGesture { get; set; }

Property Value

KeyGesture:

The default value is Ctrl+Alt+Down.

Windows

The collection of child DockingWindow objects.

public ObservableCollection<DockingWindow> Windows { get; }

Property Value

ObservableCollection<DockingWindow>

Methods

OnCreateAutomationPeer()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer:

The type-specific AutomationPeer implementation.

OnDockSiteChanged(DockSite?, DockSite?)

Called 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)

Invoked when an unhandled System.Windows.Input.Keyboard.KeyDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

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

The KeyEventArgs that contains the event data.

OnSelectedWindowChanged(DockingWindow?, DockingWindow?)

Invoked 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)

Invoked when a menu on the tab control is opening.

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

The event data.

OnWindowsChanged(NotifyCollectionChangedEventArgs)

Invoked when the windows collection is changed.

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

The event data.

OpenContextMenu()

Opens the context menu for the SelectedWindow.

public void OpenContextMenu()

OpenTabMenu()

Opens the tab menu if the menu button is visible.

public void OpenTabMenu()

UpdateDockingWindowStates()

Updates the DockingWindowState associated with all child docking windows.

protected override void UpdateDockingWindowStates()

UpdateIsTabStripVisible()

Updates the IsTabStripVisible property.

protected override void UpdateIsTabStripVisible()

Fields

HasNewTabButtonProperty

Defines the HasNewTabButton property.

public static readonly DependencyProperty HasNewTabButtonProperty

HasTabCloseButtonsProperty

Defines the HasTabCloseButtons property.

public static readonly DependencyProperty HasTabCloseButtonsProperty

HasTabPinButtonsProperty

Defines the HasTabPinButtons property.

public static readonly DependencyProperty HasTabPinButtonsProperty

HasTabPromoteButtonsProperty

Defines the HasTabPromoteButtons property.

public static readonly DependencyProperty HasTabPromoteButtonsProperty

OpenContextMenuKeyGestureProperty

Defines the OpenContextMenuKeyGesture property.

public static readonly DependencyProperty OpenContextMenuKeyGestureProperty

OpenTabMenuKeyGestureProperty

Defines the OpenTabMenuKeyGesture property.

public static readonly DependencyProperty OpenTabMenuKeyGestureProperty

Inherited Members

Extension Methods