WindowPane WindowPane WindowPane WindowPane Class

Definition

Represents a Visual Studio window pane.

public ref class WindowPane abstract : IDisposable, IServiceProvider, Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget, Microsoft::VisualStudio::Shell::Interop::IVsUIElementPane, Microsoft::VisualStudio::Shell::Interop::IVsWindowPane
[System.Runtime.InteropServices.ComVisible(true)]
[System.Windows.Markup.ContentProperty("Content")]
public abstract class WindowPane : IDisposable, IServiceProvider, Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget, Microsoft.VisualStudio.Shell.Interop.IVsUIElementPane, Microsoft.VisualStudio.Shell.Interop.IVsWindowPane
type WindowPane = class
    interface IOleCommandTarget
    interface IServiceProvider
    interface IVsWindowPane
    interface IVsUIElementPane
    interface IDisposable
Public MustInherit Class WindowPane
Implements IDisposable, IOleCommandTarget, IServiceProvider, IVsUIElementPane, IVsWindowPane
Inheritance
WindowPaneWindowPaneWindowPaneWindowPane
Derived
Attributes
Implements

Remarks

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.

Constructors

WindowPane() WindowPane() WindowPane() WindowPane()

Initializes a new instance of WindowPane with a null parent service provider

WindowPane(IServiceProvider) WindowPane(IServiceProvider) WindowPane(IServiceProvider) WindowPane(IServiceProvider)

Initializes a new instance of WindowPane with the specified service provider.

Properties

Content Content Content Content

Gets or sets the content of this tool window.

InitializationMode InitializationMode InitializationMode InitializationMode

Gets the initialization mode that is associated with this window pane.

Window Window Window Window

Gets the window associated with this window pane.

Methods

Dispose() Dispose() Dispose() Dispose()

Disposes the window pane and its resources.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Disposes the resources of the window pane.

GetService(Type) GetService(Type) GetService(Type) GetService(Type)

Gets the service of the specified type.

Initialize() Initialize() Initialize() Initialize()

Initializes services after the window pane has been sited.

LoadUIState(Stream) LoadUIState(Stream) LoadUIState(Stream) LoadUIState(Stream)

Override to load the previously saved state of the pane.

OnClose() OnClose() OnClose() OnClose()

Raised when the window is closed.

OnCreate() OnCreate() OnCreate() OnCreate()

Raised when the window pane is created.

PreProcessMessage(Message) PreProcessMessage(Message) PreProcessMessage(Message) PreProcessMessage(Message)

Preprocesses the messages from navigation keys.

SaveUIState(Stream) SaveUIState(Stream) SaveUIState(Stream) SaveUIState(Stream)

Override to save custom state information to be used later when the pane is reconstructed.

Explicit Interface Implementations

IOleCommandTarget.Exec(Guid, UInt32, UInt32, IntPtr, IntPtr) IOleCommandTarget.Exec(Guid, UInt32, UInt32, IntPtr, IntPtr) IOleCommandTarget.Exec(Guid, UInt32, UInt32, IntPtr, IntPtr) IOleCommandTarget.Exec(Guid, UInt32, UInt32, IntPtr, IntPtr)

Executes the specified command.

IOleCommandTarget.QueryStatus(Guid, UInt32, OLECMD[], IntPtr) IOleCommandTarget.QueryStatus(Guid, UInt32, OLECMD[], IntPtr) IOleCommandTarget.QueryStatus(Guid, UInt32, OLECMD[], IntPtr) IOleCommandTarget.QueryStatus(Guid, UInt32, OLECMD[], IntPtr)

Gets the status of the commands.

IVsUIElementPane.CloseUIElementPane() IVsUIElementPane.CloseUIElementPane() IVsUIElementPane.CloseUIElementPane() IVsUIElementPane.CloseUIElementPane()

Closes the pane.

IVsUIElementPane.CreateUIElementPane(Object) IVsUIElementPane.CreateUIElementPane(Object) IVsUIElementPane.CreateUIElementPane(Object) IVsUIElementPane.CreateUIElementPane(Object)

Creates the pane.

IVsUIElementPane.GetDefaultUIElementSize(SIZE[]) IVsUIElementPane.GetDefaultUIElementSize(SIZE[]) IVsUIElementPane.GetDefaultUIElementSize(SIZE[]) IVsUIElementPane.GetDefaultUIElementSize(SIZE[])

When implemented in a derived class, gets the default size of the pane.

IVsUIElementPane.LoadUIElementState(IStream) IVsUIElementPane.LoadUIElementState(IStream) IVsUIElementPane.LoadUIElementState(IStream) IVsUIElementPane.LoadUIElementState(IStream)

When implemented in a derived class, loads custom state storage.

IVsUIElementPane.SaveUIElementState(IStream) IVsUIElementPane.SaveUIElementState(IStream) IVsUIElementPane.SaveUIElementState(IStream) IVsUIElementPane.SaveUIElementState(IStream)

Stores the state of the pane to the specified stream.

IVsUIElementPane.SetUIElementSite(IServiceProvider) IVsUIElementPane.SetUIElementSite(IServiceProvider) IVsUIElementPane.SetUIElementSite(IServiceProvider) IVsUIElementPane.SetUIElementSite(IServiceProvider)

Sets the site for this window pane.

IVsUIElementPane.TranslateUIElementAccelerator(MSG[]) IVsUIElementPane.TranslateUIElementAccelerator(MSG[]) IVsUIElementPane.TranslateUIElementAccelerator(MSG[]) IVsUIElementPane.TranslateUIElementAccelerator(MSG[])

Handles keyboard accelerators before the shell processes the message.

IVsWindowPane.ClosePane() IVsWindowPane.ClosePane() IVsWindowPane.ClosePane() IVsWindowPane.ClosePane()

Closes the window pane. Obsolete.

IVsWindowPane.CreatePaneWindow(IntPtr, Int32, Int32, Int32, Int32, IntPtr) IVsWindowPane.CreatePaneWindow(IntPtr, Int32, Int32, Int32, Int32, IntPtr) IVsWindowPane.CreatePaneWindow(IntPtr, Int32, Int32, Int32, Int32, IntPtr) IVsWindowPane.CreatePaneWindow(IntPtr, Int32, Int32, Int32, Int32, IntPtr)

Creates a window pane. Obsolete.

IVsWindowPane.GetDefaultSize(SIZE[]) IVsWindowPane.GetDefaultSize(SIZE[]) IVsWindowPane.GetDefaultSize(SIZE[]) IVsWindowPane.GetDefaultSize(SIZE[])

Gets the default size of the window pane. Obsolete.

IVsWindowPane.LoadViewState(IStream) IVsWindowPane.LoadViewState(IStream) IVsWindowPane.LoadViewState(IStream) IVsWindowPane.LoadViewState(IStream)

Loads the saved view state. Obsolete.

IVsWindowPane.SaveViewState(IStream) IVsWindowPane.SaveViewState(IStream) IVsWindowPane.SaveViewState(IStream) IVsWindowPane.SaveViewState(IStream)

Saves the loaded view state. Obsolete.

IVsWindowPane.SetSite(IServiceProvider) IVsWindowPane.SetSite(IServiceProvider) IVsWindowPane.SetSite(IServiceProvider) IVsWindowPane.SetSite(IServiceProvider)

Initializes this window pane with the specified service provider. Obsolete.

IVsWindowPane.TranslateAccelerator(MSG[]) IVsWindowPane.TranslateAccelerator(MSG[]) IVsWindowPane.TranslateAccelerator(MSG[]) IVsWindowPane.TranslateAccelerator(MSG[])

Handles the translation of navigation keys. Obsolete

IServiceProvider.GetService(Type) IServiceProvider.GetService(Type) IServiceProvider.GetService(Type) IServiceProvider.GetService(Type)

Gets the service of the specified type.

Extension Methods

FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)
IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

Applies to