Add Document Window with index

Docking/MDI for WPF Forum

Posted 10 years ago by jay - dx
Avatar
Hello,
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 10 years ago by jay - dx
Avatar
It works in the tabbedMdiContainer like this :

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

anyway...

Anyone know about how to change the documentWindow's index in programmatically.
Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
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 10 years ago by jay - dx
Avatar
Thank you for your answer! It's good news.
The latest build of this product (v2019.1 build 0681) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.