TabbedMdiContainer Class
Represents a container of one or more documents in tabbed MDI.
public class TabbedMdiContainer : DockingWindowContainerBase, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IBreadcrumbContainer, IHierarchyContainer, IHierarchyNode, IMdiContainer, IActiveContainer, ITabbedDockTarget, IDragDockTarget, IDockTarget, IOrientedElement
- Inheritance:
- Object DispatcherObject DependencyObject 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
- Boolean:
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
- Boolean:
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
- Boolean:
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
- Boolean:
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()
Explicit Interface Implementations
IDockTarget.GetState(Nullable<Side>)
Returns the DockingWindowState that specifies the state of the docking location around the target.
DockingWindowState IDockTarget.GetState(Side? side)
Parameter | Type | Description |
---|---|---|
side | Nullable<Side> |
Returns
- DockingWindowState:
The DockingWindowState that specifies the state of the docking location around the target.
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.StateProperty
- DockingWindowContainerBase.TabControlStyleProperty
- DockingWindowContainerBase.TabItemContainerStyleProperty
- DockingWindowContainerBase.TabOverflowBehaviorProperty
- DockingWindowContainerBase.TabStripPlacementProperty
- DockingWindowContainerBase.OnApplyTemplate()
- DockingWindowContainerBase.ToString()
- DockingWindowContainerBase.UpdateCommands()
- DockingWindowContainerBase.UpdateIsTabStripVisible()
- DockingWindowContainerBase.UpdateTitleBarButtonVisibility()
- DockingWindowContainerBase.UpdateVisualState(Boolean)
- 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.State
- DockingWindowContainerBase.TabControl
- DockingWindowContainerBase.TabControlStyle
- DockingWindowContainerBase.TabItemContainerStyle
- DockingWindowContainerBase.TabOverflowBehavior
- DockingWindowContainerBase.TabStripPlacement
- DockingWindowContainerBase.WindowsCore
- DockingWindowContainerBase.IOrientedElement.Orientation
- Object.Equals(Object)
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetHashCode()
- Object.GetType()
- Object.MemberwiseClone()
Extension Methods
- FrameworkElementExtensions.AnimateDoubleProperty(String, Double, Double, Double, Nullable<Double>, Nullable<Double>)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, String, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, DependencyProperty, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.GetCurrentSize()