![]() |
||||
Visual Studio provides two kinds of windows (apart from the main window of the IDE):
In turn, a toolwindow can be in three states:
Notice that any toolwindow can be in any of those states. It just happens that some toolwindows are preset to appear in a specific state. More Information You can set the state of a toolwindow manually through the context menu of its caption, which offers at least the following menu entries:
Notice that these two properties provide actually four and not three states as explained before, because a toolwindow can be floating even if the Floating menu entry is unchecked, as long as it is not docked. You can also set the state of a toolwindow programmatically. This article assumes that you have already created a toolwindow using the EnvDTE.Windows.CreateToolwindow and that you already have the EnvDTE.Window object returned by that function (showing the code to create a toolwindow is beyond the scope of this article, see the article HOWTO: Create a dockable toolwindow from a Visual Studio .NET add-in). The state of a toolwindow can be set programmatically through two properties of the EnvDTE.Window class:
Notice that although the user interface uses the term "Dockable", the extensibility model uses the term "Linkable". For example, to make a toolwindow to appear as a tabbed window, you have to set both properties to false. Related articles Go back to the 'Resources for Visual Studio .NET extensibility' section for more articles like this
|
| Copyright © 2000-2013 MZTools Software. All Rights Reserved. Legal Notice |