System.ComponentModel.Design.DesignSurfaceManager Class

Manages a collection of System.ComponentModel.Design.DesignSurface objects.

See Also: DesignSurfaceManager Members


public class DesignSurfaceManager : IDisposable, IServiceProvider


The System.ComponentModel.Design.DesignSurfaceManager class is designed to be a container of System.ComponentModel.Design.DesignSurface objects. It provides common services that handle event routing between designers, property windows, and other global objects. Using System.ComponentModel.Design.DesignSurfaceManager is optional, but it is recommended if you intend to have several designer windows.

The System.ComponentModel.Design.DesignSurfaceManager class provides several design-time services automatically. You can override each of these services by replacing them in the protected DesignSurfaceManager.ServiceContainer property. To replace a service, override the constructor, call base, and make any changes through the protected DesignSurfaceManager.ServiceContainer property. All services added to the service container that implement the IDisposable interface are disposed when the design surface manager is disposed. The System.ComponentModel.Design.DesignSurfaceManager class provides the System.ComponentModel.Design.IDesignerEventService interface as the default service. System.ComponentModel.Design.IDesignerEventService provides a global eventing mechanism for designer events. With this mechanism, an application is informed when a designer becomes active. The service provides a collection of designers and a single place where global objects, such as the Properties window, can monitor selection change events.


Namespace: System.ComponentModel.Design
Assembly: System.Design (in System.Design.dll)
Assembly Versions: