This project is read-only.

Insert tab at specific position

Aug 5, 2010 at 3:49 PM
Edited Aug 5, 2010 at 3: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?

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