Example #1
0
        protected virtual Control CreateCommandGroupControl(CommandGroup commandGroup)
        {
            var commands = commandGroup.GetItems().Select(CreateCommandItemControl);
            var list     = new StackPanel();

            list.Items.AddRange(commands);
            return(new StackPanel {
                Items =
                {
                    new Label(commandGroup.Name),
                    list
                }
            });
        }