
I am dynamically loading DocumentWindows to a dock site like so:
DocumentWindow documentWindow = new DocumentWindow(_dockSite, name, title, null, sourceObjectContainer.SourceObject);
Is there any way that I can insert the document window in a specific order. For example, lets say I have screen A-Z. If I open up Screen Z 1st and Screen A 2nd the tabs appear(from left to right) as tab Z then tab A. But, I want A to show to the left of Z. Is there a way to achieve this without removing all of the DocumentWindows from the DockSite and then re-adding them back?
The following also does not work:
DocumentWindow documentWindow = new DocumentWindow(null, name, title, null, sourceObjectContainer.SourceObject);
_dockSite.DocumentWindows.Insert(desiredIndex, documentWindow);
Thanks,
[Modified at 03/15/2011 01:46 PM]
DocumentWindow documentWindow = new DocumentWindow(_dockSite, name, title, null, sourceObjectContainer.SourceObject);
Is there any way that I can insert the document window in a specific order. For example, lets say I have screen A-Z. If I open up Screen Z 1st and Screen A 2nd the tabs appear(from left to right) as tab Z then tab A. But, I want A to show to the left of Z. Is there a way to achieve this without removing all of the DocumentWindows from the DockSite and then re-adding them back?
The following also does not work:
DocumentWindow documentWindow = new DocumentWindow(null, name, title, null, sourceObjectContainer.SourceObject);
_dockSite.DocumentWindows.Insert(desiredIndex, documentWindow);
Thanks,
[Modified at 03/15/2011 01:46 PM]