![]() |
||||
|
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, with 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 programatically. 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, check the MSDN documentation about that function). The state of a toolwindow can be set programatically 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. Go back to the 'Resources for Visual Studio .NET extensibility' section for more articles like this
You can code, design, locate code and document your apps much faster using VB.NET, C#, C++ or Visual J#:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||