DesignerWindowPane.OnClose Method ()

 

Called in response to the ClosePane method on the IVsWindowPane interface.

Namespace:   Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

protected override void OnClose()

This method is called in response to the ClosePane method. The default implementation calls Dispose; DesignerWindowPane overrides this method to support window pane caching. Window pane caching can provide a performance boost and enable shared features, like a global designer that is shared among multiple child designers. To enable window pane caching, the following scenarios must hold true:

  1. The DesignSurface must offer a service of type T:Microsoft.VisualStudio.Shell.Design.Serialization.DocDataServiceContainer.

  2. The T:Microsoft.VisualStudio.Shell.Design.Serialization.DocDataServiceContainer must contain the DesignSurface as a service.

The combination of these two criteria indicates that the DesignSurface supports caching itself onto the DocData.

Dispose
DesignSurface
T:Microsoft.VisualStudio.Shell.Design.Serialization.DocDataServiceContainer
DocData
DesignerWindowPane Class
Microsoft.VisualStudio.Shell.Design Namespace

Return to top
Show: