Token导航 LogoToken导航

Agent Skill · 前端设计

syncfusion-winforms-xptoolbar(同步融合 winform xptoolbar)

syncfusion-winforms-xptoolbar 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

syncfusion-winforms-xptoolbar 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 5,048。

总安装 749周安装 30GitHub Stars 1下载 242核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:syncfusion-winforms-xptoolbar(同步融合 winform xptoolbar)
来源仓库:https://github.com/syncfusion/winforms-ui-components-skills
仓库路径:skills/syncfusion-winforms-xptoolbar
安装命令:
npx skills add https://github.com/syncfusion/winforms-ui-components-skills --skill syncfusion-winforms-xptoolbar
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/syncfusion/winforms-ui-components-skills --skill syncfusion-winforms-xptoolbar

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态或协作事项进行整理。通过 npx skills add 命令从指定仓库安装并使用。安装前需确认权限范围和维护状态,避免触发联网或文件读写操作。

syncfusion-winforms-xptoolbar 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/syncfusion-winforms-xptoolbar

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/syncfusion/winforms-ui-components-skills --ski…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

syncfusion-winforms-xptoolbar 怎么安装?

在终端执行 npx skills add https://github.com/syncfusion/winforms-ui-components-skills --skill syncfus…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

syncfusion-winforms-xptoolbar 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

syncfusion-winforms-xptoolbar 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

syncfusion-winforms-xptoolbar 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

syncfusion-winforms-xptoolbar 用的人多吗?

公开数据是累计安装 749 次,近一周安装 30 次,下载 242 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

syncfusion-winforms-xptoolbar 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
syncfusion-winforms-xptoolbar

同步融合 winform xptoolbar · 本页

7491只读未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Implementing Syncfusion WinForms XPToolBar

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.

When to Use This Skill

Use this skill when the user needs to:

  • Application Toolbars: Standard toolbar with buttons, dropdowns, and combo boxes
  • Visual Studio-Style Menus: VS-inspired menu bars with File, Edit, View options
  • Quick Access Toolbars: Frequently used commands in a compact toolbar
  • Dockable Toolbars: Toolbars that can dock to any side (Top, Bottom, Left, Right)
  • Multiple Toolbar Levels: Several toolbars stacked consecutively
  • Dropdown Menus: DropDownBarItem and ParentBarItem with submenus
  • Toolbar Controls: ComboBoxBarItem, TextBoxBarItem, ListBarItem in toolbars
  • Overflow Management: Chevron button for items that don't fit
  • Themed Toolbars: Office2007, Office2016, Metro themes
  • RTL Applications: Right-to-Left toolbar layouts

Component Overview

XPToolBar (Syncfusion.Windows.Forms.Tools.XPMenus.XPToolBar) is a versatile toolbar control supporting:

  • 8 BarItem Types:

- BarItem: Individual menu/toolbar button - ParentBarItem: Submenu with child items - DropDownBarItem: Dropdown list selection - ComboBoxBarItem: Editable combo box - ListBarItem: List selection control - StaticBarItem: Non-clickable label/separator - ToolbarListBarItem: Toolbar list display - TextBoxBarItem: Text input box - Separator: Visual divider between items

  • Flexible Docking: Top, Bottom, Left, Right positioning
  • Multiple Toolbars: Add consecutive toolbar levels
  • Chevron/Overflow Button: Shows hidden items when toolbar is too narrow
  • Rich Themes: Office2007, Office2016 (Colorful/White/DarkGray/Black), Metro
  • Customization: Text, colors, fonts, images, tooltips per item
  • RTL Support: Right-to-Left layout for international apps
  • Localization: Multi-language support with CultureInfo
  • Keyboard Shortcuts: Assign keyboard shortcuts to BarItems

Key Namespace: Syncfusion.Windows.Forms.Tools.XPMenus

Assembly: Syncfusion.Tools.Windows.dll (and dependencies)


Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

When to read: User needs to install, configure, or create their first XPToolBar.

Topics covered:

  • Assembly deployment and NuGet package installation
  • Adding XPToolBar via designer (toolbox, smart tags)
  • Adding XPToolBar via code
  • Positioning toolbar with Panel/container controls
  • BarItem Collection Editor for adding items
  • Bar.Items collection management
  • Basic toolbar setup and initialization

BarItem Types and Collections

📄 Read: references/baritem-types.md

When to read: User wants to add buttons, dropdowns, combo boxes, or understand different item types.

Topics covered:

  • BarItem (individual button/menu item)
  • ParentBarItem (submenu with child items)
  • DropDownBarItem (dropdown selection list)
  • ComboBoxBarItem (editable combo box control)
  • ListBarItem (list selection)
  • StaticBarItem (non-clickable labels)
  • ToolbarListBarItem (toolbar item lists)
  • TextBoxBarItem (text input in toolbar)
  • Separator (visual divider)
  • Adding items programmatically via Items collection
  • Item properties (Text, Image, Tooltip, Enabled)

Docking and Layout

📄 Read: references/docking-and-layout.md

When to read: User needs to position toolbar or add multiple toolbar levels.

Topics covered:

  • Docking positions (Top, Bottom, Left, Right)
  • Dock property configuration
  • Multiple consecutive toolbars
  • Adding toolbar levels
  • Container requirements (Panel, GroupBox, etc.)
  • Toolbar positioning strategies
  • Layout best practices for different scenarios

Chevron and Overflow

📄 Read: references/chevron-and-overflow.md

When to read: User encounters overflow issues or wants to manage hidden toolbar items.

Topics covered:

  • Chevron/Overflow button functionality
  • Viewing items that don't fit in toolbar width
  • Overflow behavior and triggers
  • Configuring chevron appearance
  • User interaction with overflow menu
  • Managing toolbar items for different window sizes

Appearance Customization

📄 Read: references/appearance-customization.md

When to read: User wants to customize colors, fonts, images, or tooltips.

Topics covered:

  • Text customization (Text property)
  • Background color (BackColor property)
  • Foreground color (ForeColor property)
  • Font configuration per item or toolbar
  • Image assignment to BarItems
  • Tooltip configuration (ToolTip property per item)
  • Size and spacing adjustments
  • Per-item appearance customization

Themes and Styling

📄 Read: references/themes-and-styling.md

When to read: User wants Office themes, RTL support, or localization.

Topics covered:

  • Visual styles: Office2007 (Blue, Silver, Black)
  • Office2016 themes (Colorful, White, DarkGray, Black)
  • Metro theme
  • Style property configuration
  • RTL (Right-to-Left) support for Arabic/Hebrew
  • Localization with CultureInfo
  • Keyboard shortcuts (Ctrl+X, Alt+F, etc.)
  • Trigger BarItems for custom actions

Quick Start Example

Basic Toolbar with Menu Items

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

Toolbar with Office2016 Theme

// Apply Office2016 Colorful theme
xpToolBar1.Style = VisualStyle.Office2016Colorful;

Common Patterns

File Menu with Submenu Items

// 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.

Toolbar with ComboBox and TextBox

// 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.

Docked Toolbar (Top)

// 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.

Multiple Toolbar Levels

// 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.


Key Properties

Core Properties

PropertyTypeDescriptionWhen to Use
Bar.ItemsBarItemCollectionCollection of toolbar itemsAdd/manage toolbar buttons and controls
DockDockStyleDocking positionPosition toolbar (Top/Bottom/Left/Right)
StyleVisualStyleVisual theme styleApply Office2007/2016/Metro themes

BarItem Properties

PropertyTypeDescriptionWhen to Use
TextstringItem text/captionSet button or menu label
ImageImageItem iconAdd visual icon to item
ToolTipstringTooltip textProvide hover information
EnabledboolEnable/disable itemControl item interactivity
VisibleboolShow/hide itemToggle item visibility

BarItem Types Summary

  • BarItem - Standard button/menu item
  • ParentBarItem - Menu with submenu items (use .Items collection)
  • DropDownBarItem - Dropdown list (use .ChoiceList)
  • ComboBoxBarItem - Editable combo box (use .Items and .SelectedIndex)
  • ListBarItem - List selection control
  • StaticBarItem - Non-clickable label
  • TextBoxBarItem - Text input (use .TextBoxValue)
  • ToolbarListBarItem - Toolbar item list
  • Separator - Visual divider (set BarItemType = BarItemType.Separator)

Common Use Cases

1. Application Menu Bar

Scenario: Standard menu bar with File, Edit, View, Help.

  • Use ParentBarItem for each top-level menu
  • Add submenu BarItems to each ParentBarItem
  • Add separators between item groups
  • Handle Click events for actions
  • Read: baritem-types.md

2. Text Editor Toolbar

Scenario: Formatting toolbar with font, size, bold, italic.

3. Ribbon-Like Quick Access

Scenario: Quick access toolbar above main content.

4. Multi-Level Toolbar System

Scenario: Menu bar + Quick access toolbar + Formatting toolbar.

  • Create multiple Panel containers
  • Add one XPToolBar per panel
  • Stack panels with proper docking order
  • Apply consistent theme across all toolbars
  • Read: docking-and-layout.md

5. Localized Toolbar

Scenario: Toolbar for international application (Arabic/Hebrew).

  • Enable RTL support
  • Use CultureInfo for localization
  • Load localized strings from resources
  • Test with different languages
  • Read: themes-and-styling.md

6. Dynamic Toolbar

Scenario: Add/remove toolbar items at runtime based on context.

  • Use Bar.Items.Add/Remove methods
  • Show/hide items with Visible property
  • Enable/disable with Enabled property
  • Refresh toolbar layout after changes
  • Read: baritem-types.md

Events

Common BarItem events:

  • Click - Raised when item is clicked
  • SelectedIndexChanged - For ComboBoxBarItem/DropDownBarItem selection changes
barItem1.Click += (sender, e) => {
    // Handle button click
    MessageBox.Show("Item clicked!");
};

comboBoxBarItem1.SelectedIndexChanged += (sender, e) => {
    string selected = comboBoxBarItem1.ChoiceList[comboBoxBarItem1.SelectedIndex];
    // Handle selection change
};

Best Practices

  1. Container Usage: Always place XPToolBar in a Panel or container for proper positioning
  2. Theme Consistency: Match toolbar Style to application theme
  3. Image Quality: Use high-quality icons (16x16 or 24x24) for BarItem images
  4. Tooltips: Always provide tooltips for icon-only buttons
  5. Overflow Management: Keep toolbar item count reasonable to minimize overflow
  6. Event Handling: Subscribe to Click events for all interactive BarItems
  7. Separators: Use separators to visually group related items
  8. Keyboard Shortcuts: Assign shortcuts for frequently used commands
  9. Dynamic Updates: Use Enabled/Visible properties rather than removing items
  10. Docking Order: Add panels in reverse order when stacking multiple toolbars

See Also

平台分布

Codex

37.9%
按下载量换算92

Claude

28.89%
按下载量换算70

Cursor

17.43%
按下载量换算42

Gemini CLI

9.37%
按下载量换算23

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills