Reorder tabbed documents in RadDock
Environment
Product Version | Product | Author |
---|---|---|
2019.1.219 | RadDock for WinForms | Desislava Yordanova |
Description
When you add/show a new document, it is placed considering the RadDock.DocumentManager.DocumentInsertOrder property. The default value is DockWindowInsertOrder.InFront. Hence, the documents are placed in front. In other words, when you make visible a DocumentWindow, it is located at first position. Then, when you make visible each next DocumentWindow, it is placed in front of the previously added/shown window. This behavior is by design.
Solution
You can change the order of the tabbed documents by using the DocumentTabStrip.Controls.SetChildIndex method passing the desired window and index. Here is a sample code snippet which result is illustrated below: