Example #1
0
 protected override void OnIsSubmenuOpenChanged()
 {
     if (IsSubmenuOpen)
     {
         var    newItems   = new List <IMenuItem>();
         string previousId = Guid.NewGuid().ToString();
         foreach (IDocument doc in layoutManager.Documents)
         {
             var docMenuItem = new DocumentMenuItem(doc, previousId, layoutManager);
             previousId = docMenuItem.ID;
             newItems.Add(docMenuItem);
         }
         Items = extensionService.SortAndJoin(menu, new ConcreteMenuItemSeparator(), newItems);
     }
 }
Example #2
0
 protected override void OnIsSubmenuOpenChanged()
 {
     if (IsSubmenuOpen)
     {
         var newItems = new List<IMenuItem>();
         string previousId = Guid.NewGuid().ToString();
         foreach (IDocument doc in layoutManager.Documents)
         {
             var docMenuItem = new DocumentMenuItem(doc, previousId, layoutManager);
             previousId = docMenuItem.ID;
             newItems.Add(docMenuItem);
         }
         Items = extensionService.SortAndJoin(menu, new ConcreteMenuItemSeparator(), newItems);
     }
 }