Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
530
Clearing and adding 10 items to Ribbon.ApplicationMenu.RecentItems taking 5-6 seconds
posted

The sample code below adds a Name/Value collection of 10 items (a most recently used list) to the XamRibbon's application menu's recently used list.  After running this code a dozen times, the time to complete the line

        PentaRibbon.ApplicationMenu.RecentItems.Add(buttonTool);

increases to about 1/2 second per call.  Is there any know bug with this?

    private void UpdateMRUList()
    {
      PentaRibbon.ApplicationMenu.RecentItems.Clear();
      foreach (ExtendedProperty extendedProperty in _mruList.Screens)
      {
        ButtonTool buttonTool = new ButtonTool();
        buttonTool.Click += new RoutedEventHandler(buttonTool_Click);
        buttonTool.Caption = extendedProperty.Name;
        buttonTool.Tag = extendedProperty.Value;
        PentaRibbon.ApplicationMenu.RecentItems.Add(buttonTool);
      }
    }

  • 54937
    Offline posted

    I'm not aware of any issues related to what you describe. If you can provide a sample that demonstrates the issue we can look into the matter to determine what is going on. One thing that you can do to help isolate the issue is to set VS to break on all exceptions and see if you are getting any exceptions during that processing.