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.
HasTabCloseButtons
Indicates whether close buttons should appear on document tabs.
HasTabPinButtons
Indicates whether pin buttons should appear on document tabs (normal layout kind).
HasTabPromoteButtons
Indicates whether promote buttons should appear on document tabs (preview layout kind).
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
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
- DockingWindowContainerBase.CanTabsCloseOnMiddleClickProperty
- DockingWindowContainerBase.HasTabImagesProperty
- DockingWindowContainerBase.IsActiveProperty
- DockingWindowContainerBase.IsTabLayoutAnimationEnabledProperty
- DockingWindowContainerBase.IsTabLayoutAnimationEnabledResolvedProperty
- DockingWindowContainerBase.IsTabStripVisibleProperty
- DockingWindowContainerBase.MaxTabExtentProperty
- DockingWindowContainerBase.MinTabExtentProperty
- DockingWindowContainerBase.SelectedWindowProperty
- DockingWindowContainerBase.SingleTabLayoutBehaviorProperty
- DockingWindowContainerBase.StateProperty
- DockingWindowContainerBase.TabControlStyleProperty
- DockingWindowContainerBase.TabItemContainerStyleProperty
- DockingWindowContainerBase.TabOverflowBehaviorProperty
- DockingWindowContainerBase.TabStripPlacementProperty
- DockingWindowContainerBase.OnApplyTemplate()
- DockingWindowContainerBase.ToString()
- DockingWindowContainerBase.UpdateCommands()
- DockingWindowContainerBase.UpdateTitleBarButtonVisibility()
- DockingWindowContainerBase.ValidateChildType(DockingWindow)
- DockingWindowContainerBase.OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)
- DockingWindowContainerBase.UpdateVisualState(bool)
- DockingWindowContainerBase.CanTabsCloseOnMiddleClick
- DockingWindowContainerBase.DockHost
- DockingWindowContainerBase.DockSite
- DockingWindowContainerBase.HasTabImages
- DockingWindowContainerBase.IsActive
- DockingWindowContainerBase.IsTabLayoutAnimationEnabled
- DockingWindowContainerBase.IsTabLayoutAnimationEnabledResolved
- DockingWindowContainerBase.IsTabStripVisible
- DockingWindowContainerBase.MaxTabExtent
- DockingWindowContainerBase.MinTabExtent
- DockingWindowContainerBase.SelectedWindow
- DockingWindowContainerBase.SingleTabLayoutBehavior
- DockingWindowContainerBase.State
- DockingWindowContainerBase.TabControl
- DockingWindowContainerBase.TabOverflowBehavior
- DockingWindowContainerBase.TabStripPlacement
- DockingWindowContainerBase.WindowsCore
- DockingWindowContainerBase.LogicalChildren
- DockingWindowContainerBase.TabControlStyle
- DockingWindowContainerBase.TabItemContainerStyle