When I update the MRU list in the application menu and then open the application menu again I have to wait around 10 seconds till the menu finally opens.
So I'm updating the list like this
this.Ribbon.ApplicationMenu.RecentItems.Clear(); for (int i = 0; i < m_MRU.Count; i++) { ButtonTool bt = new ButtonTool(); bt.Click += new RoutedEventHandler(AppMenuMRU_Click); bt.Caption = m_MRU.ElementAt(i); this.Ribbon.ApplicationMenu.RecentItems.Add(bt); }
then wait a bit, then click on the orb and then just sit and wait. After 10 secs the menu finally opens.
Bug in XamRibbon?
Edit: using Infra 11.1
I'm not aware of any such issues. I could see there could be some problem if you add lots of mru items as those panels are not virtualized but typically one puts a cap on the number of mru items maintained. Please provide a sample that demonstrates the problem and we can look into it.
I was assembling a test project for you and while doing that I noticed that the behavior (also the other problem with the collapsed ribbon) only occurs when the app runs in the debugger (VS2010Prof). When running the app.exe from command line there is no delay.
So it doesn't seem so critical anymore but can you still take a look? How can I send you the test project?
Edit: added source