Token导航 LogoToken导航

Agent Skill · 前端设计

syncfusion-winforms-scroll-frame(同步融合 winforms 滚动框架)

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

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

总安装 250周安装 10GitHub Stars 1下载 81核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

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

这个 Skill 是做什么的

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

Syncfusion WinForms 滚动框架控件,增强标准 Panel 的滚动条行为与内容容器能力。适用于需要自定义滚动逻辑、固定头部/尾部或复杂嵌套布局的应用。支持平滑滚动、惯性滑动、滚动条样式定制及内容尺寸动态调整。需确认项目是否已正确导入 Syncfusion 基础绘图库,否则可能出现滚动异常。

在多线程环境下更新内容时务必调用 Invoke 方法,防止跨线程访问引发崩溃。

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

上手步骤

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-scroll-frame 怎么安装?

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

syncfusion-winforms-scroll-frame 支持哪些 AI 工具?

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

syncfusion-winforms-scroll-frame 需要什么权限?

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

syncfusion-winforms-scroll-frame 是免费的吗?

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

syncfusion-winforms-scroll-frame 用的人多吗?

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

syncfusion-winforms-scroll-frame 安全吗?

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

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

值得选的地方

  • 同时适配 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-scroll-frame

同步融合 winforms 滚动框架 · 本页

2501只读未明确通过

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

SKILL.md 原文

Implementing Scroll Frames (SfScrollFrame)

The SfScrollFrame control provides theme-able, customizable scrollbars for Windows Forms applications. It attaches modern, styled scrollbars to any control derived from Microsoft's ScrollableControl or Container, replacing the default system scrollbars with fully customizable alternatives that support themes, context menus, and extensive appearance options.

When to Use This Skill

Use this skill when you need to:

  • Attach custom scrollbars to Panel, ListView, ListBox, or other scrollable controls
  • Apply themes to scrollbars (Office2016, Office2019, HighContrast)
  • Customize scrollbar appearance (colors, sizes, states)
  • Handle scrollbar events and context menus
  • Implement localization for scrollbar context menus
  • Enable UI automation for scrollbar testing (Coded UI, QTP)
  • Programmatically control scrolling with custom scroll speeds
  • Replace default Windows scrollbars with modern alternatives

Component Overview

Key Features

  • Universal Attachment: Works with any ScrollableControl-derived control (Panel, ListView, ListBox, etc.)
  • Theme Support: Built-in Office2016, Office2019, and HighContrast themes
  • Full Customization: Customize colors, sizes, and states for all scrollbar elements
  • Context Menu: Customizable right-click menu with localization support
  • Programmatic Scrolling: Control scroll position and speed via code
  • UI Automation: Support for Coded UI tests and QTP/UFT testing
  • Overlay Display: Scrollbars appear over default positions without layout changes

Architecture

SfScrollFrame
├── Control Property (attach to target)
├── HorizontalScrollBar
│   ├── Style (ScrollBarStyleInfo)
│   ├── Value, SmallChange
│   ├── EnableMaximumArrow, EnableMinimumArrow, EnableThumb
│   └── ContextMenuShowing event
└── VerticalScrollBar
    ├── Style (ScrollBarStyleInfo)
    ├── Value, SmallChange
    ├── EnableMaximumArrow, EnableMinimumArrow, EnableThumb
    └── ContextMenuShowing event

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Assembly deployment and required references
  • Attaching SfScrollFrame through designer
  • Attaching SfScrollFrame through code
  • Programmatic scrolling with Value property
  • Configuring SmallChange for scroll speed
  • Basic implementation examples

Appearance and Styling

📄 Read: references/appearance-styling.md

  • Customizing scrollbar appearance with ScrollBarStyleInfo
  • Arrow button styling (colors, hover, pressed, disabled states)
  • Thumb styling (colors, width, border, states)
  • Disabling arrow buttons and thumbs
  • Built-in theme support (Office2016, Office2019, HighContrast)
  • Loading and applying theme assemblies
  • ThemeName property usage

Context Menu Customization

📄 Read: references/context-menu.md

  • Default context menu functionality
  • ContextMenuShowing event handling
  • Disabling default context menu
  • Showing custom context menus
  • Adding items to default context menu
  • ContextMenuShowingEventArgs properties

Localization Support

📄 Read: references/localization.md

  • Localizing scrollbar context menu strings
  • Adding resource files (.resx) to application
  • Creating culture-specific resources
  • Setting CurrentUICulture
  • Editing default culture resources
  • Localizing from different assemblies/namespaces

UI Automation and Testing

📄 Read: references/ui-automation.md

  • Microsoft UI Automation overview
  • Coded UI Test (CUIT) support (Level 1 & 2)
  • CodedUITestBuilder usage
  • Recording actions and adding assertions
  • Running automated tests
  • QTP/UFT testing support

Limitations and Constraints

📄 Read: references/limitations.md

  • Applicable controls (ScrollableControl derivatives)
  • Incompatible controls (custom scrollbar implementations)
  • LargeChange property constraints
  • Best practices and workarounds

Quick Start

Basic Implementation

using Syncfusion.WinForms.Controls;

// Create SfScrollFrame instance
SfScrollFrame sfScrollFrame1 = new SfScrollFrame();

// Create a ListView (or any ScrollableControl)
ListView listView1 = new ListView();
listView1.View = View.Details;
listView1.Columns.Add("Column 1", 150);
listView1.Columns.Add("Column 2", 150);

// Add items
for (int i = 0; i < 100; i++)
{
    listView1.Items.Add(new ListViewItem(new[] { $"Item {i}", $"Value {i}" }));
}

// Attach SfScrollFrame to ListView
sfScrollFrame1.Control = listView1;

// Add ListView to form
this.Controls.Add(listView1);

With Theme Applied

using Syncfusion.WinForms.Controls;
using Syncfusion.WinForms.Themes;

// In Program.cs
static void Main()
{
    // Load theme assembly
    SfSkinManager.LoadAssembly(typeof(Office2016Theme).Assembly);

    Application.EnableVisualStyles();
    Application.SetCompatibleTextRenderingDefault(false);
    Application.Run(new MainForm());
}

// In form
public MainForm()
{
    InitializeComponent();

    // Create and attach SfScrollFrame
    SfScrollFrame sfScrollFrame1 = new SfScrollFrame();
    sfScrollFrame1.Control = listView1;

    // Apply theme
    sfScrollFrame1.ThemeName = "Office2016Colorful";
}

Common Patterns

Pattern 1: Attach to Panel with Custom Styling

// Create Panel with content
Panel panel1 = new Panel();
panel1.AutoScroll = true;
panel1.Size = new Size(400, 300);

// Add controls to panel
for (int i = 0; i < 50; i++)
{
    Button btn = new Button();
    btn.Text = $"Button {i}";
    btn.Location = new Point(10, i * 30);
    panel1.Controls.Add(btn);
}

// Attach SfScrollFrame
SfScrollFrame sfScrollFrame1 = new SfScrollFrame();
sfScrollFrame1.Control = panel1;

// Customize vertical scrollbar appearance
sfScrollFrame1.VerticalScrollBar.Style.ScrollBarBackColor = Color.LightGray;
sfScrollFrame1.VerticalScrollBar.Style.ThumbColor = Color.Gray;
sfScrollFrame1.VerticalScrollBar.Style.ThumbHoverColor = Color.Black;
sfScrollFrame1.VerticalScrollBar.Style.ThumbPressedColor = Color.Blue;
sfScrollFrame1.VerticalScrollBar.Style.ThumbWidth = 10;

this.Controls.Add(panel1);

Pattern 2: Programmatic Scrolling with Speed Control

// Attach SfScrollFrame
sfScrollFrame1.Control = listView1;

// Configure scroll speed
sfScrollFrame1.HorizontalScrollBar.SmallChange = 10;
sfScrollFrame1.VerticalScrollBar.SmallChange = 20;

// Scroll to specific position
Button scrollButton = new Button();
scrollButton.Text = "Scroll to Middle";
scrollButton.Click += (s, e) =>
{
    // Get maximum scroll value
    int maxValue = sfScrollFrame1.VerticalScrollBar.Maximum;

    // Scroll to middle
    sfScrollFrame1.VerticalScrollBar.Value = maxValue / 2;
};

Pattern 3: Custom Context Menu

sfScrollFrame1.Control = listView1;

// Handle ContextMenuShowing event for vertical scrollbar
sfScrollFrame1.VerticalScrollBar.ContextMenuShowing += (sender, e) =>
{
    // Add custom menu item to default menu
    MenuItem customItem = new MenuItem("Show Current Position", (s, ev) =>
    {
        int position = sfScrollFrame1.VerticalScrollBar.Value;
        MessageBox.Show($"Current scroll position: {position}");
    });

    e.ContextMenu.MenuItems.Add(customItem);
};

Pattern 4: Disabled Arrow Buttons with Custom Colors

sfScrollFrame1.Control = panel1;

// Disable minimum arrows (top/left)
sfScrollFrame1.VerticalScrollBar.EnableMinimumArrow = false;
sfScrollFrame1.HorizontalScrollBar.EnableMinimumArrow = false;

// Set disabled button colors
sfScrollFrame1.VerticalScrollBar.Style.ArrowButtonDisabledBackColor = Color.Silver;
sfScrollFrame1.VerticalScrollBar.Style.ArrowButtonDisabledForeColor = Color.Gray;

sfScrollFrame1.HorizontalScrollBar.Style.ArrowButtonDisabledBackColor = Color.Silver;
sfScrollFrame1.HorizontalScrollBar.Style.ArrowButtonDisabledForeColor = Color.Gray;

Key Properties

SfScrollFrame Properties

PropertyTypeDescription
ControlControlThe control to which scrollbars are attached (must be ScrollableControl)
HorizontalScrollBarScrollBarBaseAccess to horizontal scrollbar configuration
VerticalScrollBarScrollBarBaseAccess to vertical scrollbar configuration
ThemeNamestringTheme to apply (Office2016Colorful, Office2016White, etc.)

ScrollBar Properties

PropertyTypeDescription
ValueintCurrent scroll position
SmallChangeintScroll amount for arrow button clicks
EnableMaximumArrowboolEnable/disable bottom/right arrow button
EnableMinimumArrowboolEnable/disable top/left arrow button
EnableThumbboolEnable/disable scrollbar thumb
StyleScrollBarStyleInfoAppearance customization settings

ScrollBarStyleInfo Properties

PropertyTypeDescription
ScrollBarBackColorColorBackground color of scrollbar track
ThumbColorColorNormal state thumb color
ThumbHoverColorColorThumb color when mouse hovers
ThumbPressedColorColorThumb color when clicked
ThumbWidthintWidth/height of thumb (max: scrollbar size)
ThumbBorderColorColorBorder color of thumb
ArrowButtonBackColorColorNormal state arrow button background
ArrowButtonForeColorColorNormal state arrow icon color
ArrowButtonHoverBackColorColorArrow button background on hover
ArrowButtonPressedBackColorColorArrow button background when clicked
ArrowButtonDisabledBackColorColorDisabled arrow button background
ArrowButtonBorderColorColorArrow button border color

Common Use Cases

Use Case 1: Enhanced ListView with Custom Scrollbars

Scenario: Replace default ListView scrollbars with themed, customized scrollbars.

Implementation:

// Setup ListView
ListView listView = new ListView { View = View.Details, Size = new Size(400, 300) };
listView.Columns.Add("Name", 150);
listView.Columns.Add("Value", 150);

// Attach themed scrollbar
SfScrollFrame scrollFrame = new SfScrollFrame();
scrollFrame.Control = listView;
scrollFrame.ThemeName = "Office2019Colorful";

// Customize thumb width
scrollFrame.VerticalScrollBar.Style.ThumbWidth = 8;
scrollFrame.HorizontalScrollBar.Style.ThumbWidth = 8;

Use Case 2: Panel with Fast Scrolling

Scenario: Panel containing many controls with increased scroll speed.

Implementation:

// Setup Panel
Panel panel = new Panel { AutoScroll = true, Size = new Size(500, 400) };

// Attach scrollbar with fast scrolling
SfScrollFrame scrollFrame = new SfScrollFrame();
scrollFrame.Control = panel;
scrollFrame.VerticalScrollBar.SmallChange = 30;   // Faster vertical scroll
scrollFrame.HorizontalScrollBar.SmallChange = 30; // Faster horizontal scroll

Use Case 3: Localized Application

Scenario: Multi-language application with localized scrollbar menus.

Implementation:

// Set culture before InitializeComponent
System.Threading.Thread.CurrentThread.CurrentUICulture =
    new System.Globalization.CultureInfo("de-DE");

InitializeComponent();

// SfScrollFrame automatically uses localized context menu strings
// if corresponding .resx files exist

Use Case 4: Disabled Scrollbar Interaction

Scenario: Display-only scrollable content (no thumb dragging).

Implementation:

SfScrollFrame scrollFrame = new SfScrollFrame();
scrollFrame.Control = listView;

// Disable thumb dragging (scrolling only via arrows/wheel)
scrollFrame.VerticalScrollBar.EnableThumb = false;
scrollFrame.HorizontalScrollBar.EnableThumb = false;

// Set disabled thumb color
scrollFrame.VerticalScrollBar.Style.ThumbDisabledColor = Color.LightGray;
scrollFrame.HorizontalScrollBar.Style.ThumbDisabledColor = Color.LightGray;

Troubleshooting

Issue: Scrollbars not appearing

Solution:

  • Verify the target control is derived from ScrollableControl
  • Check that content exceeds control size (scrollbars only appear when needed)
  • Ensure AutoScroll property is true for Panel controls

Issue: Theme not applying

Solution:

  • Load theme assembly in Program.cs before running application
  • Verify ThemeName spelling and casing
  • Check theme assembly is referenced in project

Issue: Context menu not showing

Solution:

  • Right-click directly on the scrollbar track or thumb
  • Verify ContextMenuShowing event isn't canceling the menu
  • Check that control is focused

Issue: SmallChange not working as expected

Solution:

  • SmallChange affects arrow button clicks, not mouse wheel scrolling
  • Mouse wheel scrolling is controlled by the attached control
  • Use higher values (10-30) for noticeable speed changes

Best Practices

  1. Attach early: Set the Control property in form constructor after InitializeComponent()
  2. Load themes once: Load theme assemblies in Program.cs, not per-form
  3. Consistent styling: Apply the same theme across all SfScrollFrame instances in your application
  4. SmallChange tuning: Test different values (10-50) to find optimal scroll speed
  5. Handle events: Subscribe to ContextMenuShowing for custom menu behavior
  6. Test compatibility: Verify SfScrollFrame works with your target control before deployment
  7. Localization setup: Add resource files early in development for multi-language apps
  8. Performance: Avoid excessive style property changes during runtime

平台分布

Codex

39.01%
按下载量换算32

Claude

29.88%
按下载量换算24

Cursor

19.8%
按下载量换算16

Gemini CLI

8.86%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

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

安装前确认

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

继续浏览同类 Skills