Exemplo n.º 1
0
        /// <inheritdoc />
        public override void CreateApplicationContent(ICommandPresentationContext context)
        {
            base.CreateApplicationContent(context);

            // Add to the tool launcher
            using (context.AddToolLauncherContent())
            {
                // Add a group
                using (context.AddGroup(CustomToolsWindowGroupCommand))
                {
                    // Add the custom buttons tool window to the group
                    ICommandContentManager commandContentManager = ((CommandContentBuilder)context).Site.CommandContentManager;
                    context.Add(commandContentManager.GetCommandForWindow(CustomButtonsToolWindowType.WindowGuid));
                }
            }
        }