There is no "Parent" property in the Window Class.
I have tried to do DTE.Windows.CreateLinkedWindowFrame(Solution Explorer, My
It does actually half of the job. The result is a floating window including
two tabs. But it is floating!
In addition I try to get as close as possible of the example given in the
documentation. I have added another ToolWindow from the same initial frame
(tabbed). The result is a frame splitted into two parts, one contains two
tabs (Solution Explorer and My ToolWindow), and the second part, down
contains the added ToolWindow.
It seems there is no control over the way windows are added.
In addition when I traces the IsFloating Property, it looks like all
ToolWindows are Floating (Bug ?).
The reason why I tried to add a third window to the created frame was
because I think se shouldn't create a new frame, but use the existing one.
The real "Parent" of Solution Explorer is not the main Window but the frame.
How to access it ? Now if we get the frame, how to add a new ToolWindow and
tell the frame to add it as a tab ?
Hope you can give me an answer.
> to add a pane to an existing window and make them tabdock. My best guess
> to get the "Parent" of the solution explorer, which will be the main
> get its "Windows" property and "CreateLinkedWindowFrame" on it with
> vsLinkedWindowTypeTabbed. Then add both the solution explorer and your
> pane to it. If that doesn't work, I will try to dig deeper.
> Chris McGuire (VS Core Team)
> This posting is provided "AS IS" with no warranties, and confers no
> > I have created a ToolWindow which I want (at load time of my add-in) to
> > to an existing ToolWindow (say Solution Explorer). Link to me means that
> > both are tabs of the same frame.
> > I get Solution Explorer window, get its LinkedWindowFrame, and then try
> > add to the frame's LinkedWindows my own ToolWindow. I end up with my
> > in an entirely new place, not linked with Solution Explorer or any other
> > window.
> > When I read the Caption of all LinkedWindows (linked toSolution
> > returns Caption of all the windows but those to which it is linked to.
> > I also tried CreateLinkedWindowFrame, add Solution explorer and my
> > ToolWindow. The result is a floating window including both ToolWindows.
> > the ToolWindows are not tabs of the same Frame; they occupy half of the
> > space each.
> > I need help ! I have tried almost anything I could think of within
> > Properties and methods.
> > Again what I want to do is to end up having my ToolWindow as a Tab
> > the same frame as Solution Explorer, and keep Solution Explorer at same
> > place.