/syncfusion-winforms:syncfusion-winforms-buttonfrom Syncfusion WinForms Controls
Guide developers to implement and customize the Syncfusion Windows Forms SfButton control for desktop applications. Use this when creating interactive buttons with text, images, styling, and theming in Windows Forms applications. Covers implementation, customization, and interaction 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.
Welcome to the comprehensive guide for implementing and customizing the Syncfusion Windows Forms SfButton control. SfButton is an advanced button control that provides rich text, image support, extensive customization options, and professional theming capabilities.
Use this skill whenever you need to:
SfButton is an advanced button control superior to the standard Windows Forms Button. Key capabilities include:
📄 Read: references/getting-started.md
Start here to learn:
📄 Read: references/button-types-and-content.md
Learn how to create different button styles:
📄 Read: references/appearance-and-styling.md
Master button styling and customization:
📄 Read: references/events-and-interactions.md
Implement button interactions:
Here's a minimal example to get started with SfButton:
using Syncfusion.WinForms.Controls;
using System.Windows.Forms;
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
// Create and configure SfButton
SfButton sfButton1 = new SfButton();
sfButton1.Text = "Click Me";
sfButton1.Font = new System.Drawing.Font("Segoe UI", 10F);
sfButton1.Location = new System.Drawing.Point(50, 50);
sfButton1.Size = new System.Drawing.Size(120, 40);
// Add click event
sfButton1.Click += SfButton1_Click;
// Add to form
this.Controls.Add(sfButton1);
}
private void SfButton1_Click(object sender, System.EventArgs e)
{
MessageBox.Show("Button clicked!");
}
}
sfButton1.Text = "Save";
sfButton1.Image = Image.FromFile(@"save-icon.png");
sfButton1.TextImageRelation = TextImageRelation.ImageBeforeText;
sfButton1.ImageSize = new Size(20, 20);
sfButton1.Text = ""; // Empty text
sfButton1.Image = Image.FromFile(@"icon.png");
sfButton1.ImageSize = new Size(24, 24);
sfButton1.Style.BackColor = Color.White;
sfButton1.Style.Border = null;
sfButton1.Style.BackColor = Color.LightBlue;
sfButton1.Style.ForeColor = Color.Black;
sfButton1.Style.HoverBackColor = Color.Blue;
sfButton1.Style.HoverForeColor = Color.White;
sfButton1.Style.PressedBackColor = Color.DarkBlue;
sfButton1.Style.PressedForeColor = Color.White;
sfButton1.Text = "Variable Length Content";
sfButton1.AutoSize = true; // Auto-adjust to content
sfButton1.Font = new Font("Segoe UI", 11F);
// In Program.cs Main():
SfSkinManager.LoadAssembly(typeof(Office2016Theme).Assembly);
// In form:
sfButton1.ThemeName = "Office2016Colorful";
| Property | Type | Purpose |
|---|---|---|
Text | string | Button display text |
Image | Image | Button image/icon |
ImageSize | Size | Dimensions of displayed image |
TextImageRelation | TextImageRelation | Position of image relative to text |
TextAlign | ContentAlignment | Text alignment within button |
ImageAlign | ContentAlignment | Image alignment within button |
AutoSize | bool | Auto-fit button to content |
AllowWrapText | bool | Enable text wrapping |
AutoEllipsis | bool | Show ellipsis for trimmed text |
AllowRichText | bool | Enable rich text formatting |
BackgroundImage | Image | Background fill image |
FocusRectangleVisible | bool | Show focus indicator rectangle |
ThemeName | string | Apply built-in theme |
Style | ButtonVisualStyle | Access appearance customization |
Required assemblies for SfButton:
Syncfusion.Core.WinForms (Main assembly containing SfButton)Syncfusion.Shared.Base (Shared base library)Syncfusion.Office2016Theme.WinForms (for themes)See Getting Started reference for detailed NuGet installation instructions.
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