Add Document Window with index

Docking/MDI for WPF Forum

Posted 15 years ago by jay - dx
I'doing some test about docking.
In this topic DocumentWindowCollection's insert method does not working correctly.
I mean the index is not working.

Here's my example source,

" dockSite1.DocumentWindows.Insert(0, dw); "

This is always activate at the end of the docksite's document windows index.

anyone give me a feedback to me?

[Modified at 05/14/2009 09:19 PM]

[Modified at 05/14/2009 09:21 PM]

Comments (3)

Posted 15 years ago by jay - dx
It works in the tabbedMdiContainer like this :

tabbedMdiContainer1.Items.Insert(0, documentwindw object);


Anyone know about how to change the documentWindow's index in programmatically.
Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Jay,

The order documents are added into that particular DockSite collection have no real effect on the user interface at all.

Although the TabbedMdiContainer.Items collection may work ok for you, I'd only recommend using it when moving a window within the same container assuming it's already in there. Right now new windows are only inserted at the end of the container by default. We'll mark down to add some feature to help target an index better in the future.

Actipro Software Support

Posted 15 years ago by jay - dx
Thank you for your answer! It's good news.
The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.