/syncfusion-winforms:syncfusion-winforms-xptoolbarfrom Syncfusion WinForms Controls
Implement and configure Syncfusion XPToolBar control for creating professional Visual Studio-style toolbars in Windows Forms applications. Use when you need customizable toolbar layouts with various item types (BarItem, ParentBarItem, DropDownBarItem, ComboBoxBarItem), dockable positioning, chevron overflow buttons, and Office themes. Covers toolbar structure, bar item management, docking positions, appearance customization with Office2007/2016 themes, and RTL support for creating feature-rich application toolbars and menu bars.
Ships in Syncfusion WinForms Controls. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The XPToolBar control is a Microsoft Visual Studio-inspired standalone toolbar that provides convenient access to frequently used commands and options. It supports various item types, flexible positioning, overflow handling, and professional themes.
Use this skill when the user needs to:
XPToolBar (Syncfusion.Windows.Forms.Tools.XPMenus.XPToolBar) is a versatile toolbar control supporting:
Key Namespace: Syncfusion.Windows.Forms.Tools.XPMenus
Assembly: Syncfusion.Tools.Windows.dll (and dependencies)
📄 Read: references/getting-started.md
When to read: User needs to install, configure, or create their first XPToolBar.
Topics covered:
📄 Read: references/baritem-types.md
When to read: User wants to add buttons, dropdowns, combo boxes, or understand different item types.
Topics covered:
📄 Read: references/docking-and-layout.md
When to read: User needs to position toolbar or add multiple toolbar levels.
Topics covered:
📄 Read: references/chevron-and-overflow.md
When to read: User encounters overflow issues or wants to manage hidden toolbar items.
Topics covered:
📄 Read: references/appearance-customization.md
When to read: User wants to customize colors, fonts, images, or tooltips.
Topics covered:
📄 Read: references/themes-and-styling.md
When to read: User wants Office themes, RTL support, or localization.
Topics covered:
using Syncfusion.Windows.Forms.Tools.XPMenus;
using System.Windows.Forms;
// Create panel to host toolbar
Panel panel1 = new Panel();
panel1.Dock = DockStyle.Top;
panel1.Height = 50;
// Create XPToolBar
XPToolBar xpToolBar1 = new XPToolBar();
// Create menu items
BarItem fileItem = new BarItem();
fileItem.Text = "File";
ParentBarItem editItem = new ParentBarItem();
editItem.Text = "Edit";
// Add submenu items to Edit
BarItem cutItem = new BarItem { Text = "Cut" };
BarItem copyItem = new BarItem { Text = "Copy" };
BarItem pasteItem = new BarItem { Text = "Paste" };
editItem.Items.AddRange(new BarItem[] { cutItem, copyItem, pasteItem });
DropDownBarItem viewItem = new DropDownBarItem();
viewItem.Text = "View";
// Add items to toolbar
xpToolBar1.Bar.Items.AddRange(new BarItem[] {
fileItem,
editItem,
viewItem
});
// Add toolbar to panel
panel1.Controls.Add(xpToolBar1);
// Add panel to form
this.Controls.Add(panel1);
// Apply Office2016 Colorful theme
xpToolBar1.Style = VisualStyle.Office2016Colorful;
// Create File menu with submenu
ParentBarItem fileMenu = new ParentBarItem();
fileMenu.Text = "File";
// Add submenu items
BarItem newItem = new BarItem { Text = "New", Image = Properties.Resources.New };
BarItem openItem = new BarItem { Text = "Open", Image = Properties.Resources.Open };
BarItem saveItem = new BarItem { Text = "Save", Image = Properties.Resources.Save };
BarItem separator = new BarItem { BarItemType = BarItemType.Separator };
BarItem exitItem = new BarItem { Text = "Exit" };
fileMenu.Items.AddRange(new BarItem[] {
newItem,
openItem,
saveItem,
separator,
exitItem
});
// Handle click events
newItem.Click += (s, e) => CreateNewDocument();
openItem.Click += (s, e) => OpenDocument();
saveItem.Click += (s, e) => SaveDocument();
exitItem.Click += (s, e) => Application.Exit();
xpToolBar1.Bar.Items.Add(fileMenu);
When to use: Standard application menu with File operations.
// Font selector combo box
ComboBoxBarItem fontCombo = new ComboBoxBarItem();
fontCombo.Text = "Font:";
fontCombo.ChoiceList.AddRange(new string[] { "Arial", "Calibri", "Times New Roman" });
fontCombo.SelectedIndex = 0;
// Font size text box
TextBoxBarItem fontSizeTextBox = new TextBoxBarItem();
fontSizeTextBox.Text = "Size:";
fontSizeTextBox.TextBoxValue = "12";
fontSizeTextBox.MinimumSize = new Size(50, 20);
// Add to toolbar
xpToolBar1.Bar.Items.AddRange(new BarItem[] {
fontCombo,
fontSizeTextBox
});
// Handle changes
fontCombo.SelectedIndexChanged += (s, e) => {
string selectedFont = fontCombo.ChoiceList[fontCombo.SelectedIndex];
ApplyFont(selectedFont);
};
When to use: Text editor or formatting toolbars.
// Create toolbar with top docking
XPToolBar toolbar = new XPToolBar();
toolbar.Dock = DockStyle.Top;
// Add items
toolbar.Bar.Items.AddRange(new BarItem[] {
new BarItem { Text = "Home" },
new BarItem { Text = "Insert" },
new BarItem { Text = "View" }
});
// Add directly to form (no panel needed for simple top dock)
this.Controls.Add(toolbar);
When to use: Simple top-docked toolbar without complex layout.
// First toolbar level (Menu bar)
Panel menuPanel = new Panel { Dock = DockStyle.Top, Height = 30 };
XPToolBar menuToolbar = new XPToolBar();
menuToolbar.Bar.Items.AddRange(new BarItem[] {
new ParentBarItem { Text = "File" },
new ParentBarItem { Text = "Edit" },
new ParentBarItem { Text = "View" }
});
menuPanel.Controls.Add(menuToolbar);
// Second toolbar level (Quick access)
Panel quickPanel = new Panel { Dock = DockStyle.Top, Height = 40 };
XPToolBar quickToolbar = new XPToolBar();
quickToolbar.Bar.Items.AddRange(new BarItem[] {
new BarItem { Text = "New", Image = Properties.Resources.New },
new BarItem { Text = "Save", Image = Properties.Resources.Save },
new BarItem { Text = "Undo", Image = Properties.Resources.Undo }
});
quickPanel.Controls.Add(quickToolbar);
// Add to form (order matters - add quick toolbar first for correct stacking)
this.Controls.Add(quickPanel);
this.Controls.Add(menuPanel);
When to use: Complex applications with menu bar and quick access toolbar.
| Property | Type | Description | When to Use |
|---|---|---|---|
| Bar.Items | BarItemCollection | Collection of toolbar items | Add/manage toolbar buttons and controls |
| Dock | DockStyle | Docking position | Position toolbar (Top/Bottom/Left/Right) |
| Style | VisualStyle | Visual theme style | Apply Office2007/2016/Metro themes |
| Property | Type | Description | When to Use |
|---|---|---|---|
| Text | string | Item text/caption | Set button or menu label |
| Image | Image | Item icon | Add visual icon to item |
| ToolTip | string | Tooltip text | Provide hover information |
| Enabled | bool | Enable/disable item | Control item interactivity |
| Visible | bool | Show/hide item | Toggle item visibility |
.Items collection).ChoiceList).Items and .SelectedIndex).TextBoxValue)BarItemType = BarItemType.Separator)Scenario: Standard menu bar with File, Edit, View, Help.
Scenario: Formatting toolbar with font, size, bold, italic.
Scenario: Quick access toolbar above main content.
Scenario: Menu bar + Quick access toolbar + Formatting toolbar.
Scenario: Toolbar for international application (Arabic/Hebrew).
Scenario: Add/remove toolbar items at runtime based on context.
Common BarItem events:
barItem1.Click += (sender, e) => {
// Handle button click
MessageBox.Show("Item clicked!");
};
comboBoxBarItem1.SelectedIndexChanged += (sender, e) => {
string selected = comboBoxBarItem1.ChoiceList[comboBoxBarItem1.SelectedIndex];
// Handle selection change
};
references/appearance-customization.md (opens in a new tab)references/baritem-types.md (opens in a new tab)references/chevron-and-overflow.md (opens in a new tab)references/docking-and-layout.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/themes-and-styling.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-winforms113 skills in this plugin
/syncfusion-winforms-ai-assistviewGuide for implementing Syncfusion Windows Forms AI AssistView (SfAIAssistView) for building conversational AI interfaces in desktop applications. Use this when creating chat interfaces, AI assistants, or chatbots with Windows Forms. Supports OpenAI and Azure OpenAI integration, typing indicators, chat suggestions, message bubbles, custom views, input toolbar with attachments, response toolbar actions, and stop responding for interactive messaging experiences./syncfusion-winforms-autocompleteGuides implementation of the Syncfusion WinForms AutoComplete control for text input with auto-suggestion functionality. Use when users want to add autocomplete textboxes, implement auto-suggestion features, create search boxes with suggestions, enable URL/email autocomplete, or build type-ahead search functionality in Windows desktop applications. Covers data binding, customization, filtering, multi-column dropdowns, events, and all AutoComplete-specific features./syncfusion-winforms-autolabelGuides implementation of the Syncfusion WinForms AutoLabel control for automatic label positioning with form controls. Use when users want to add labels that automatically reposition when controls move, create form layouts with paired label-control units, implement complex form designs with FlowLayout, or ensure labels stay synchronized with their associated controls. Covers labeling controls, positioning, spacing, size settings, theming, and events.Other plugins' skills for the same job