WindowPane Class

Represents a Visual Studio window pane.

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

[ContentPropertyAttribute("Content")]
[ComVisibleAttribute(true)]
public abstract class WindowPane : IOleCommandTarget, 
	IServiceProvider, IVsWindowPane, IVsUIElementPane, IDisposable

The WindowPane type exposes the following members.

  NameDescription
Protected methodWindowPane()Initializes a new instance of WindowPane with a null parent service provider
Protected methodWindowPane(IServiceProvider)Initializes a new instance of WindowPane with the specified service provider.
Top

  NameDescription
Public propertyContentGets or sets the content of this tool window.
Protected propertyInitializationModeGets the initialization mode that is associated with this window pane.
Public propertyWindowGets the window associated with this window pane.
Top

  NameDescription
Public methodDispose()Disposes the window pane and its resources.
Protected methodDispose(Boolean)Disposes the resources of the window pane.
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Protected methodGetServiceGets the service of the specified type.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodInitializeInitializes services after the window pane has been sited.
Public methodLoadUIStateOverride to load the previously saved state of the pane.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodOnCloseRaised when the window is closed.
Protected methodOnCreateRaised when the window pane is created.
Protected methodPreProcessMessagePreprocesses the messages from navigation keys.
Public methodSaveUIStateOverride to save custom state information to be used later when the pane is reconstructed.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIServiceProvider.GetServiceGets the service of the specified type.
Explicit interface implemetationPrivate methodIOleCommandTarget.ExecExecutes the specified command.
Explicit interface implemetationPrivate methodIOleCommandTarget.QueryStatusGets the status of the commands.
Explicit interface implemetationPrivate methodIVsUIElementPane.CloseUIElementPaneCloses the pane.
Explicit interface implemetationPrivate methodIVsUIElementPane.CreateUIElementPaneCreates the pane.
Explicit interface implemetationPrivate methodIVsUIElementPane.GetDefaultUIElementSizeWhen implemented in a derived class, gets the default size of the pane.
Explicit interface implemetationPrivate methodIVsUIElementPane.LoadUIElementStateWhen implemented in a derived class, loads custom state storage.
Explicit interface implemetationPrivate methodIVsUIElementPane.SaveUIElementStateStores the state of the pane to the specified stream.
Explicit interface implemetationPrivate methodIVsUIElementPane.SetUIElementSiteSets the site for this window pane.
Explicit interface implemetationPrivate methodIVsUIElementPane.TranslateUIElementAcceleratorHandles keyboard accelerators before the shell processes the message.
Explicit interface implemetationPrivate methodIVsWindowPane.ClosePane Obsolete. Closes the window pane. Obsolete.
Explicit interface implemetationPrivate methodIVsWindowPane.CreatePaneWindow Obsolete. Creates a window pane. Obsolete.
Explicit interface implemetationPrivate methodIVsWindowPane.GetDefaultSize Obsolete. Gets the default size of the window pane. Obsolete.
Explicit interface implemetationPrivate methodIVsWindowPane.LoadViewState Obsolete. Loads the saved view state. Obsolete.
Explicit interface implemetationPrivate methodIVsWindowPane.SaveViewState Obsolete. Saves the loaded view state. Obsolete.
Explicit interface implemetationPrivate methodIVsWindowPane.SetSite Obsolete. Initializes this window pane with the specified service provider. Obsolete.
Explicit interface implemetationPrivate methodIVsWindowPane.TranslateAccelerator Obsolete. Handles the translation of navigation keys. Obsolete
Top

This class implements IVsUIElementPane, which allows you use WPF elements as windows. This class also implements IOleCommandTarget, maps it to IMenuCommandService and IObjectWithSite, and maps the site to services that can be queried through its protected GetService method.

This class also implements IVsWindowPane, but the methods are now obsolete.

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

Community Additions

ADD
Show: