ToolWindowBase Class

This class implements a base tool window for Team Foundation.

In Visual Studio tool windows are composed of a frame (implemented by the shell) and a pane, usually implemented by the package implementer.

This class derives from the ToolWindowPane class provided from the MPF in order to use its implementation of the IVsWindowPane interface.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Shell.WindowPane
    Microsoft.VisualStudio.Shell.ToolWindowPane
      Microsoft.VisualStudio.TeamFoundation.ToolWindowBase

Namespace:  Microsoft.VisualStudio.TeamFoundation
Assembly:  Microsoft.VisualStudio.TeamFoundation (in Microsoft.VisualStudio.TeamFoundation.dll)

Syntax

'Declaration
Public MustInherit Class ToolWindowBase _
    Inherits ToolWindowPane _
    Implements IOleCommandTarget, IVsWindowFrameNotify, IVsWindowFrameNotify2
public abstract class ToolWindowBase : ToolWindowPane, 
    IOleCommandTarget, IVsWindowFrameNotify, IVsWindowFrameNotify2
public ref class ToolWindowBase abstract : public ToolWindowPane, 
    IOleCommandTarget, IVsWindowFrameNotify, IVsWindowFrameNotify2
[<AbstractClass>]
type ToolWindowBase =  
    class 
        inherit ToolWindowPane 
        interface IOleCommandTarget 
        interface IVsWindowFrameNotify 
        interface IVsWindowFrameNotify2 
    end
public abstract class ToolWindowBase extends ToolWindowPane implements IOleCommandTarget, IVsWindowFrameNotify, IVsWindowFrameNotify2

The ToolWindowBase type exposes the following members.

Constructors

  Name Description
Public method ToolWindowBase Standard constructor for the tool window.

Top

Properties

  Name Description
Public property BitmapIndex (Inherited from ToolWindowPane.)
Public property BitmapResourceID (Inherited from ToolWindowPane.)
Public property Caption (Inherited from ToolWindowPane.)
Public property CommandHandler Get/Set the command handler
Public property Content Overridden to get/set the WPF content (Overrides WindowPane.Content.)
Public property Frame (Inherited from ToolWindowPane.)
Public property HelpTopic Get the help topic
Protected property InitializationMode (Inherited from WindowPane.)
Public property IsMultiInstance Returns true if this is a multi instance tool window.
Public property IsOnScreen true if the toolwindow is viewable on the screen and is not slid off screen (ie. auto-slide), not obstructed by another tabbed document, or closed. This differs from IsVisible which does not consider the toolwindow being slid off screen or the tabbed document being obstructed (ie. on top) by another.
Public property IsTransient Returns true if this is a transient tool window.
Public property Package (Inherited from ToolWindowPane.)
Public property SearchCategory (Inherited from ToolWindowPane.)
Public property SearchEnabled (Inherited from ToolWindowPane.)
Public property SearchFiltersEnum (Inherited from ToolWindowPane.)
Public property SearchHost (Inherited from ToolWindowPane.)
Public property SearchOptionsEnum (Inherited from ToolWindowPane.)
Public property ServiceProvider Get the IOleServiceProvider interface.
Public property ToolBar (Inherited from ToolWindowPane.)
Public property ToolBarCommandTarget (Inherited from ToolWindowPane.)
Public property ToolBarDropTarget (Inherited from ToolWindowPane.)
Public property ToolBarLocation (Inherited from ToolWindowPane.)
Public property ToolClsid (Inherited from ToolWindowPane.)
Public property Window (Inherited from WindowPane.)
Public property WindowFrame Toolwindow container frame

Top

Methods

  Name Description
Public method ClearSearch (Inherited from ToolWindowPane.)
Public method Close Close this tool window.
Public method CreateSearch (Inherited from ToolWindowPane.)
Public method Dispose() (Inherited from WindowPane.)
Protected method Dispose(Boolean) (Overrides WindowPane.Dispose(Boolean).)
Protected method DisposeCleanup Dispose components
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetIVsWindowPane (Inherited from ToolWindowPane.)
Protected method GetService (Inherited from WindowPane.)
Protected method GetToolWindowAttribute Get the package ProvideToolWindowAttribute for this tool window.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method Initialize (Inherited from WindowPane.)
Protected method InitializeProxyControl Setup the tool window proxy control
Public method InitializeView Post construction initialization. NOTE: The view must be created in the constructor because VSIP needs the IWin32Window during the tool window instantiation.
Protected method IOleCommandTargetExec
Protected method IOleCommandTargetQueryStatus
Public method LoadUIState (Inherited from WindowPane.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnClose() (Inherited from WindowPane.)
Public method OnClose(UInt32%)
Protected method OnCloseCleanup
Protected method OnCreate (Inherited from WindowPane.)
Public method OnDockableChange
Public method OnMove
Public method OnNavigationKeyDown (Inherited from ToolWindowPane.)
Public method OnShow
Public method OnSize
Public method OnToolBarAdded (Inherited from ToolWindowPane.)
Public method OnToolWindowCreated OnToolWindowCreated event handler. This is where key bindings will be hooked up. (Overrides ToolWindowPane.OnToolWindowCreated().)
Protected method PreProcessMessage (Inherited from WindowPane.)
Public method ProvideSearchSettings (Inherited from ToolWindowPane.)
Public method SaveUIState (Inherited from WindowPane.)
Protected method SetFocus Set the focus to the view control
Protected method SetUserContext Set the help topic for this tool window.
Protected method SetUserSubContext Set the help topic for a specific context in this tool window. This help topic will be higher priority than the general tool window help topic.
Public method Show Show this tool window.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method UpdateCaption Update the caption of the tool window and the visualizer title

Top

Events

  Name Description
Public event ToolWindowClosing Event raised when the tool window is about to be closed

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IOleCommandTarget.Exec
Explicit interface implemetationPrivate method IOleCommandTarget.QueryStatus
Explicit interface implemetationPrivate property IVsWindowSearch.Category (Inherited from ToolWindowPane.)
Explicit interface implemetationPrivate method IVsWindowPane.ClosePane Obsolete. (Inherited from WindowPane.)
Explicit interface implemetationPrivate method IVsUIElementPane.CloseUIElementPane (Inherited from WindowPane.)
Explicit interface implemetationPrivate method IVsWindowPane.CreatePaneWindow Obsolete. (Inherited from WindowPane.)
Explicit interface implemetationPrivate method IVsUIElementPane.CreateUIElementPane (Inherited from WindowPane.)
Explicit interface implemetationPrivate method IVsWindowPane.GetDefaultSize Obsolete. (Inherited from WindowPane.)
Explicit interface implemetationPrivate method IVsUIElementPane.GetDefaultUIElementSize (Inherited from WindowPane.)
Explicit interface implemetationPrivate method IServiceProvider.GetService (Inherited from WindowPane.)
Explicit interface implemetationPrivate method IVsUIElementPane.LoadUIElementState (Inherited from WindowPane.)
Explicit interface implemetationPrivate method IVsWindowPane.LoadViewState Obsolete. (Inherited from WindowPane.)
Explicit interface implemetationPrivate method IVsUIElementPane.SaveUIElementState (Inherited from WindowPane.)
Explicit interface implemetationPrivate method IVsWindowPane.SaveViewState Obsolete. (Inherited from WindowPane.)
Explicit interface implemetationPrivate method IVsWindowPane.SetSite Obsolete. (Inherited from WindowPane.)
Explicit interface implemetationPrivate method IVsUIElementPane.SetUIElementSite (Inherited from WindowPane.)
Explicit interface implemetationPrivate method IVsWindowPane.TranslateAccelerator Obsolete. (Inherited from WindowPane.)
Explicit interface implemetationPrivate method IVsUIElementPane.TranslateUIElementAccelerator (Inherited from WindowPane.)

Top

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

Microsoft.VisualStudio.TeamFoundation Namespace