public CommandBarContextMenu(ICommandService commandService) { if (commandService == null) { throw new ArgumentNullException("commandService"); } this.commandService = commandService; this.items = new CommandBarItemCollection(this.commandService, CommandInvocationSource.ContextMenu, base.Items, false); }
public CommandBarMenu(ICommandService commandService, bool displayShortcut, bool isCollapsible) { this.isCollapsible = isCollapsible; this.items = new CommandBarItemCollection(commandService, CommandInvocationSource.MenuItem, base.Items, displayShortcut); }