In This Article

Workspace Class

Represents a control that can contain a MDI host, and around which tool windows are docked.

public class Workspace : ContentControl, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild, IDragDockTarget, IDockTarget, IHierarchyContainer, IHierarchyNode
Inheritance:
System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement System.Windows.Controls.Control System.Windows.Controls.ContentControl Object
Implements:
IDockTarget

Constructors

Workspace()

Initializes an instance of the Workspace class.

public Workspace()

Properties

DockHost

Gets the DockHost that contains this control.

public DockHost DockHost { get; }

Property Value

DockHost:

The DockHost that contains this control.

DockSite

Gets the DockSite that is managing this control.

public DockSite DockSite { get; }

Property Value

DockSite:

The DockSite that is managing this control.

Methods

OnContentChanged(Object, Object)

Occurs when the content changes.

protected override void OnContentChanged(object oldContent, object newContent)
Parameter Type Description
oldContent System.Object

The old content.

newContent System.Object

The new content.

OnCreateAutomationPeer()

Returns an System.Windows.Automation.Peers.AutomationPeer object for this control instance.

protected override AutomationPeer OnCreateAutomationPeer()

Returns

System.Windows.Automation.Peers.AutomationPeer:

An System.Windows.Automation.Peers.AutomationPeer instance.

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 System.Nullable<Side>

Returns

DockingWindowState:

The DockingWindowState that specifies the state of the docking location around the target.

Inherited Members

  • System.Object.ToString()
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object, System.Object)
  • System.Object.ReferenceEquals(System.Object, System.Object)
  • System.Object.GetHashCode()
  • System.Object.GetType()
  • System.Object.MemberwiseClone()

Extension Methods