Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi experts,

one of my projects uses WeiFen Luo's DockPanel Suite. Now customer demands to have tabs sorted in a given order when in Document view.

The tabs are all instances of the same DockContent-derived class. It carries a float by which to sort.

DockPanel.Contents is a DockContentCollection that sadly doesn't provide a Sort method like other collections. It's also not possible to delete DockContents from it in order to add them in the correct order.

But user can drag a tab and drop it onto another to change their order.

Does anyone know how to do that "insert tab1 in tab2's place" programatically?

I know I should ask in a library-dependent forum, but who knows how responsive that will be? And I hope the library is well enough known to get an answer here.

Thanks in advance.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900