/syncfusion-winforms:syncfusion-winforms-scroll-framefrom Syncfusion WinForms Controls
Guide for implementing Syncfusion SfScrollFrame control in Windows Forms applications to attach theme-able scrollbars to any scrollable control. Use this skill when implementing custom scrollbars, scrollbar theming, or replacing default scrollbars in Windows Forms. Covers scrollbar attachment, appearance customization, theme application, and scrollbar event handling.
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 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.
Use this skill when you need to:
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
📄 Read: references/getting-started.md
📄 Read: references/appearance-styling.md
📄 Read: references/context-menu.md
📄 Read: references/localization.md
📄 Read: references/ui-automation.md
📄 Read: references/limitations.md
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);
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";
}
// 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);
// 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;
};
sfScrollFrame1.Control = listView1;
// Handle ContextMenuShowing event for vertical scrollbar
sfScrollFrame1.VerticalScrollBar.ContextMenuShowing += (sender, e) =>
{
// Add custom menu item to default menu
ToolStripMenuItem customItem = new ToolStripMenuItem("Show Current Position");
customItem.Click += (s, ev) =>
{
int position = sfScrollFrame1.VerticalScrollBar.Value;
MessageBox.Show($"Current scroll position: {position}");
});
e.ContextMenu.Items.Add(customItem);
};
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;
| Property | Type | Description |
|---|---|---|
Control | Control | The control to which scrollbars are attached (must be ScrollableControl) |
HorizontalScrollBar | ScrollBarBase | Access to horizontal scrollbar configuration |
VerticalScrollBar | ScrollBarBase | Access to vertical scrollbar configuration |
ThemeName | string | Theme to apply (Office2016Colorful, Office2016White, etc.) |
| Property | Type | Description |
|---|---|---|
Value | int | Current scroll position |
SmallChange | int | Scroll amount for arrow button clicks |
EnableMaximumArrow | bool | Enable/disable bottom/right arrow button |
EnableMinimumArrow | bool | Enable/disable top/left arrow button |
EnableThumb | bool | Enable/disable scrollbar thumb |
Style | ScrollBarStyleInfo | Appearance customization settings |
| Property | Type | Description |
|---|---|---|
ScrollBarBackColor | Color | Background color of scrollbar track |
ThumbColor | Color | Normal state thumb color |
ThumbHoverColor | Color | Thumb color when mouse hovers |
ThumbPressedColor | Color | Thumb color when clicked |
ThumbWidth | int | Width/height of thumb (max: scrollbar size) |
ThumbBorderColor | Color | Border color of thumb |
ArrowButtonBackColor | Color | Normal state arrow button background |
ArrowButtonForeColor | Color | Normal state arrow icon color |
ArrowButtonHoverBackColor | Color | Arrow button background on hover |
ArrowButtonPressedBackColor | Color | Arrow button background when clicked |
ArrowButtonDisabledBackColor | Color | Disabled arrow button background |
ArrowButtonBorderColor | Color | Arrow button border color |
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;
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
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
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;
Solution:
ScrollableControlAutoScroll property is true for Panel controlsSolution:
Program.cs before running applicationThemeName spelling and casingSolution:
ContextMenuShowing event isn't canceling the menuSolution:
SmallChange affects arrow button clicks, not mouse wheel scrollingControl property in form constructor after InitializeComponent()Program.cs, not per-formContextMenuShowing for custom menu behaviorWhat 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