I'd like to have my documents tab strip always show the same document in the first tab, but let the other tabbed documents be rearranged. I've got the close button functionality working (the first document cannot be closed, the others can), but I can't seem to get the drag/drop constraints working. I have made it so the first document cannot be dragged (by setting TabStripItem.AllowDrag), but it's still possible to drag a different document in front of the one I want locked as the first document.
In approaching this problem, I haven't been able to find an event I could cancel to achieve the effect. Another approach might be to rearrange the tabs if I notice they've changed (e.g. when the ActiveWindowChanged event fires), but its not obvious how to rearrange the tabs programmatically.
Any pointers?
In approaching this problem, I haven't been able to find an event I could cancel to achieve the effect. Another approach might be to rearrange the tabs if I notice they've changed (e.g. when the ActiveWindowChanged event fires), but its not obvious how to rearrange the tabs programmatically.
Any pointers?