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 isfalse
.
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 istrue
.
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 isfalse
.
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 istrue
.
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 |
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
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
- 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.UpdateVisualState(bool)
- DockingWindowContainerBase.ValidateChildType(DockingWindow)
- DockingWindowContainerBase.OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)
- DockingWindowContainerBase.CanTabsCloseOnMiddleClick
- DockingWindowContainerBase.DockHost
- DockingWindowContainerBase.DockSite
- DockingWindowContainerBase.HasTabImages
- DockingWindowContainerBase.IsActive
- DockingWindowContainerBase.IsTabLayoutAnimationEnabled
- DockingWindowContainerBase.IsTabLayoutAnimationEnabledResolved
- DockingWindowContainerBase.IsTabStripVisible
- DockingWindowContainerBase.LogicalChildren
- DockingWindowContainerBase.MaxTabExtent
- DockingWindowContainerBase.MinTabExtent
- DockingWindowContainerBase.SelectedWindow
- DockingWindowContainerBase.SingleTabLayoutBehavior
- DockingWindowContainerBase.State
- DockingWindowContainerBase.TabControl
- DockingWindowContainerBase.TabControlStyle
- DockingWindowContainerBase.TabItemContainerStyle
- DockingWindowContainerBase.TabOverflowBehavior
- DockingWindowContainerBase.TabStripPlacement
- DockingWindowContainerBase.WindowsCore