Ribbon.Tabs.Clear() not really clearing out the tabs

Dec 2, 2010 at 8:35 PM

In my app I'm adding/removing tabs based on the active window.  It looks like the Ribbon.Tabs ObservableCollection is not responding properly if you call its Clear() method.  Any existing tabs are not actually removed.  As a work-around I'm using the following code, but it is not ideal:

 

while (Ribbon.Tabs.Count > 0)
    Ribbon.Tabs.RemoveAt(Ribbon.Tabs.Count - 1);

FYI, I'm using Fluent 2.0.

Coordinator
Dec 3, 2010 at 4:21 AM

It was fixed. Use the latest sources.

Daniel

Dec 14, 2010 at 8:41 PM

It looks like Clear() was fixed for the Tabs collection, but not for ContextualGroups.  The Ribbon.OnGroupsCollectionChanged event doesn't handle NotifyCollectionChangedAction.Reset.

Feb 24, 2011 at 5:22 PM
Edited Feb 24, 2011 at 5:42 PM

 Is the ContextualGroup still a problem?