ZoneWorkspace Class
Implements a Workspace that can contain named zones where controls can be shown.
Namespace: Microsoft.Practices.CompositeUI.WinForms
Assembly: Microsoft.Practices.CompositeUI.WinForms (in microsoft.practices.compositeui.winforms.dll)
Syntax
'Declaration
<DesignerCategoryAttribute("Code")> _
<ToolboxBitmapAttribute(GetType(ZoneWorkspace), "ZoneWorkspace")> _
<ProvidePropertyAttribute("ZoneName", GetType(ScrollableControl))> _
<ProvidePropertyAttribute("IsDefaultZone", GetType(ScrollableControl))> _
Public Class ZoneWorkspace
Inherits Panel
Implements IComposableWorkspace(Of Control, ZoneSmartPartInfo), IWorkspace, _
ISupportInitialize, IExtenderProvider
'Usage
Dim instance As ZoneWorkspace
[DesignerCategoryAttribute("Code")]
[ToolboxBitmapAttribute(typeof(ZoneWorkspace), "ZoneWorkspace")]
[ProvidePropertyAttribute("ZoneName", typeof(ScrollableControl))]
[ProvidePropertyAttribute("IsDefaultZone", typeof(ScrollableControl))]
public class ZoneWorkspace : Panel, IComposableWorkspace<Control,ZoneSmartPartInfo>, IWorkspace,
ISupportInitialize, IExtenderProvider
[DesignerCategoryAttribute(L"Code")]
[ToolboxBitmapAttribute(typeof(ZoneWorkspace), L"ZoneWorkspace")]
[ProvidePropertyAttribute(L"ZoneName", typeof(ScrollableControl))]
[ProvidePropertyAttribute(L"IsDefaultZone", typeof(ScrollableControl))]
public ref class ZoneWorkspace : public Panel, IComposableWorkspace<Control^, ZoneSmartPartInfo^>, IWorkspace,
ISupportInitialize, IExtenderProvider
/** @attribute DesignerCategoryAttribute("Code") */
/** @attribute ToolboxBitmapAttribute(Microsoft.Practices.CompositeUI.WinForms.ZoneWorkspace, "ZoneWorkspace") */
/** @attribute ProvidePropertyAttribute("ZoneName", System.Windows.Forms.ScrollableControl) */
/** @attribute ProvidePropertyAttribute("IsDefaultZone", System.Windows.Forms.ScrollableControl) */
public class ZoneWorkspace extends Panel implements IComposableWorkspace<Control,ZoneSmartPartInfo>,
IWorkspace, ISupportInitialize, IExtenderProvider
DesignerCategoryAttribute("Code")
ToolboxBitmapAttribute(Microsoft.Practices.CompositeUI.WinForms.ZoneWorkspace, "ZoneWorkspace")
ProvidePropertyAttribute("ZoneName", System.Windows.Forms.ScrollableControl)
ProvidePropertyAttribute("IsDefaultZone", System.Windows.Forms.ScrollableControl)
public class ZoneWorkspace extends Panel implements IComposableWorkspace<Control,ZoneSmartPartInfo>,
IWorkspace, ISupportInitialize, IExtenderProvider
Remarks
This workspace is intended to be used in a designer. If programmatic manipulation of zone definition is required, instead of directly adding zones to the Zones property, the following operations should be performed in order to get proper behavior:
1 - The control must be added as a child control of the workspace, probably inside a splitter container.
2 - The SetZoneName must be called passing the control and the desired zone name.
Inheritance Hierarchy
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.Control
System.Windows.Forms.ScrollableControl
System.Windows.Forms.Panel
Microsoft.Practices.CompositeUI.WinForms.ZoneWorkspace
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
ZoneWorkspace Members
Microsoft.Practices.CompositeUI.WinForms Namespace