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); } }
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); } }