Insert tab at specific position

Aug 5, 2010 at 2:49 PM
Edited Aug 5, 2010 at 2:55 PM
Inserting tabs at a specified position does not seem to work:

Ribbon ribbon = ...
RibbonTabItem tab = ...
ribbon.Tabs.Insert(0, tab);

This should add the tab as the first item on the left. However it is instead added as the last tab on the right. (Because NotifyCollectionChangedEventArgs.NewStartingIndex is ignored in OnTabsCollectionChanged?)
The same problem exists also when using Ribbon.BackstageItems.Insert (and possible some / many / all other similar containers).


Is this a bug? Is there a different way to achieve the intended result?


Thanks!
Coordinator
Aug 5, 2010 at 4:01 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.