WorkspaceComposer Generic Class

Composer class that allows workspaces that cannot inherit from Workspace to reuse its logic by implementing IComposableWorkspace and forwarding all its IWorkspace implementation methods to an instance of the composer.

Namespace: Microsoft.Practices.CompositeUI.SmartParts
Assembly: Microsoft.Practices.CompositeUI (in microsoft.practices.compositeui.dll)

Syntax

'Declaration
Public Class WorkspaceComposer(Of TSmartPart, TSmartPartInfo As ISmartPartInfo)
    Inherits Workspace(Of TSmartPart, TSmartPartInfo)
'Usage
Dim instance As WorkspaceComposer(Of TSmartPart, TSmartPartInfo)
public class WorkspaceComposer<TSmartPart,TSmartPartInfo> : Workspace<TSmartPart,TSmartPartInfo> where TSmartPartInfo : ISmartPartInfo
generic<typename TSmartPart, typename TSmartPartInfo> where TSmartPartInfo : ISmartPartInfo
public ref class WorkspaceComposer : public Workspace<TSmartPart, TSmartPartInfo>
J# supports the use of generic types and methods, but not the declaration of new ones.
JScript does not support generic types and methods.

Remarks

For an example on how to reuse the logic in Workspace on workspaces that inherit from another class already, take a look at the TabWorkspace in the WinForms project.

Inheritance Hierarchy

System.Object
   Microsoft.Practices.CompositeUI.SmartParts.Workspace
    Microsoft.Practices.CompositeUI.SmartParts.WorkspaceComposer

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

WorkspaceComposer Members
Microsoft.Practices.CompositeUI.SmartParts Namespace