I found my answer, although I cannot say that I fully understand it. I used IRegionManager.RequestNavigate () to insert the RibbonGroup into the Main Ribbon tab, for example:
// Load RibbonGroup into Navigator pane var noteListNavigator = new Uri("NoteListRibbonGroup", UriKind.Relative); regionManager.RequestNavigate("RibbonHomeTabRegion", noteListNavigator);
I changed the code to enter the view by registering it in this area, for example:
// Load Ribbon Group into Home tab regionManager.RegisterViewWithRegion("RibbonHomeTabRegion", typeof(NoteListRibbonGroup));
Now I can remove RibbonGroup with this code:
if(ribbonHomeTabRegion.Views.Contains(this)) { ribbonHomeTabRegion.Remove(this); }
So how you do this, apparently, matters. If you want to delete the view, add it using the area manager
source share