/syncfusion-winforms:syncfusion-winforms-metroformfrom Syncfusion WinForms Controls
Implements Syncfusion MetroForm control for creating modern Metro-styled Windows Forms with customizable caption bars, borders, and colors. Use this when working with MetroForm, custom title bars, flat UI forms, or modernizing Windows Forms appearance. The skill provides guidance for caption bar customization, rounded corners, caption labels and images, and advanced styling features.
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.
MetroForm is a Syncfusion Windows Forms control that provides modern Metro UI styling with flat appearance for desktop applications. It offers extensive customization options including caption bar labels, images, colors, borders, and advanced features like rounded corners (Windows 11+).
Use this skill when you need to:
MetroForm extends the standard Windows Forms Form class with:
📄 Read: references/getting-started.md
Read this reference when you need to:
📄 Read: references/caption-customization.md
Read this reference when you need to:
📄 Read: references/appearance-styling.md
Read this reference when you need to:
📄 Read: references/advanced-customization.md
Read this reference when you need to:
Install-Package Syncfusion.Shared.Base
Add reference to:
Syncfusion.Shared.Base.dllusing Syncfusion.Windows.Forms;
namespace MyApplication
{
// Inherit from MetroForm instead of Form
public partial class MainForm : MetroForm
{
public MainForm()
{
InitializeComponent();
// Basic configuration
this.Text = "My Metro Application";
this.CaptionBarHeight = 40;
this.CaptionBarColor = Color.FromArgb(17, 158, 218);
this.CaptionForeColor = Color.White;
this.BorderColor = Color.FromArgb(17, 158, 218);
this.BorderThickness = 2;
}
}
}
Imports Syncfusion.Windows.Forms
Namespace MyApplication
' Inherit from MetroForm instead of Form
Public Partial Class MainForm
Inherits MetroForm
Public Sub New()
InitializeComponent()
' Basic configuration
Me.Text = "My Metro Application"
Me.CaptionBarHeight = 40
Me.CaptionBarColor = Color.FromArgb(17, 158, 218)
Me.CaptionForeColor = Color.White
Me.BorderColor = Color.FromArgb(17, 158, 218)
Me.BorderThickness = 2
End Sub
End Class
End Namespace
// Create and configure caption label
CaptionLabel captionLabel = new CaptionLabel();
captionLabel.Text = "Dashboard";
captionLabel.Font = new Font("Segoe UI", 10F, FontStyle.Regular);
captionLabel.ForeColor = Color.White;
captionLabel.Size = new Size(200, 24);
// Add to form
this.CaptionLabels.Add(captionLabel);
// Create and configure caption image
CaptionImage logoImage = new CaptionImage();
logoImage.Image = Properties.Resources.AppLogo;
logoImage.Location = new Point(10, 5);
logoImage.Size = new Size(32, 32);
logoImage.BackColor = Color.Transparent;
// Handle click event
logoImage.ImageMouseDown += (sender, e) =>
{
MessageBox.Show("Logo clicked!");
};
// Add to form
this.CaptionImages.Add(logoImage);
// Apply gradient brush to caption bar
this.CaptionBarBrush = new LinearGradientBrush(
new Rectangle(0, 0, this.Width, this.CaptionBarHeight),
Color.DarkBlue,
Color.LightBlue,
LinearGradientMode.Horizontal
);
// Optional: Custom paint event for more control
this.CaptionBarPaint += (sender, e) =>
{
using (var brush = new LinearGradientBrush(
e.ClipRectangle,
Color.DarkBlue,
Color.LightBlue,
LinearGradientMode.Horizontal))
{
e.Graphics.FillRectangle(brush, e.ClipRectangle);
}
};
// Enable rounded corners (Windows 11 only)
this.AllowRoundedCorners = true;
this.BorderColor = Color.FromArgb(17, 158, 218);
CaptionBarHeight - Height of the caption bar (default varies)CaptionBarColor - Background color of caption barCaptionForeColor - Text color in caption barCaptionFont - Font for caption textCaptionAlign - Horizontal alignment (Left, Center, Right)CaptionVerticalAlignment - Vertical alignment (Top, Center, Bottom)CaptionBarHeightMode - Height behavior on maximizeBorderColor - Color of the form borderBorderThickness - Thickness of the border in pixelsAllowRoundedCorners - Enable rounded corners (Windows 11+)CaptionButtonColor - Color of caption buttons (minimize, maximize, close)CaptionButtonHoverColor - Button color on hoverCaptionLabels - Collection of CaptionLabel objectsCaptionImages - Collection of CaptionImage objectsIconAlign - Alignment of form icon (Left, Center, Right)CaptionBarBrush - Custom brush for caption bar backgroundCreate a modern dashboard with custom branding in the caption bar:
this.Text = "Analytics Dashboard";
this.CaptionBarHeight = 50;
this.CaptionBarColor = Color.FromArgb(41, 128, 185);
// Add company logo
CaptionImage logo = new CaptionImage
{
Image = Resources.CompanyLogo,
Location = new Point(10, 10),
Size = new Size(30, 30)
};
this.CaptionImages.Add(logo);
// Add title label
CaptionLabel title = new CaptionLabel
{
Text = "Real-Time Analytics",
Font = new Font("Segoe UI Semibold", 11F),
ForeColor = Color.White
};
this.CaptionLabels.Add(title);
Create a simple, clean settings dialog:
this.Text = "Settings";
this.CaptionBarHeight = 35;
this.CaptionBarColor = Color.FromArgb(52, 73, 94);
this.CaptionForeColor = Color.White;
this.BorderColor = Color.FromArgb(52, 73, 94);
this.BorderThickness = 1;
this.FormBorderStyle = FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
Create a main window with gradient caption and custom controls:
// Gradient caption bar
this.CaptionBarBrush = new LinearGradientBrush(
new Rectangle(0, 0, this.Width, this.CaptionBarHeight),
Color.FromArgb(44, 62, 80),
Color.FromArgb(52, 152, 219),
LinearGradientMode.Horizontal
);
// Caption buttons
this.CaptionButtonColor = Color.White;
this.CaptionButtonHoverColor = Color.FromArgb(231, 76, 60);
// Add user info to caption
CaptionLabel userLabel = new CaptionLabel
{
Text = "Welcome, John Doe",
ForeColor = Color.White,
Font = new Font("Segoe UI", 9F),
Location = new Point(100, 10)
};
this.CaptionLabels.Add(userLabel);
CaptionBarPaint - Raised when caption bar needs repainting (for custom drawing)ImageMouseDown - Mouse button pressed on caption imageImageMouseUp - Mouse button released on caption imageImageMouseEnter - Mouse enters caption image areaImageMouseLeave - Mouse leaves caption image areaImageMouseMove - Mouse moves within caption image areaMetroForm, not FormSyncfusion.Shared.Base.dll is referencedSyncfusion.Windows.Forms is importedCaptionBarHeight is sufficient for the contentAllowRoundedCorners = trueWhat 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