I have a splitpane docked left with 4 contentpanes. The xaml orders the panes the way we want them. When a pane is pinned, then unpinned, it does not return to the original pane order - it is placed at the end. Is there a property or way to retain the original order, or must I override an event (which would that be?) to insert the pane into the proper order in the splitpane?
No, there are no properties exposed to control this. The behavior mimics that of Visual Studio. You may want to submit a suggestion for adding such functionality in the future.
http://devcenter.infragistics.com/Protected/RequestFeature.aspx
Is it possible to catch an event and reorder the panes in the splitpane?
I'm not sure I follow. I thought you were asking about trying to keep the order of the items in the UnpinnedTabArea to be consistent with what they were originally? You can move items in the SpltPane's Pane collection to change the order of the pinned items but the unpinned items are not in that collection - they are within the UnpinnedTabArea of the respective docked edge. As I mentioned there is nothing publicly exposed by our control to control the order of these items - the order is based upon the order in which the panes were unpinned to mimic the behavior of VS.
You are right - just because a user pins/unpins panes, we don't want the order of them to change in the UnpinnedTabArea; however, they do. As you say, there is nothing publicly exposed to prevent that from happening, so I need to be creative with making that behavior on my own. I was asking whether there was an event that occurs (or suggest a good way to discover events) when the pinned pane becomes unpinned and again displayed in the UnpinnedTabArea so I can reorder the tabitems.
The IsPinned property of the ContentPane would change so you could do something like I described here for raising a Pinned/Unpinned event. However the UnpinnedTabArea is bound to an internally managed collection of the items for that area. You could possibly try creating a custom template for the XamDockManager where you create your own attached behavior to try to control/manipulate the SortDescriptions of the UnpinnedTabArea's Items collection but I'm not sure that it will work.
OK - thanks for the idea's. I'll let you know what winds up working.