/syncfusion-winforms:syncfusion-winforms-gradient-panelfrom Syncfusion WinForms Controls
Guide for implementing Syncfusion GradientPanel control in Windows Forms applications. Use when creating gradient backgrounds, container panels with visual styling, or grouped controls with custom backgrounds. Covers gradient containers, styled panel groups, background customization with pattern/solid/gradient displays, visual containers, and panel-based layouts.
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.
This skill guides you through implementing the Syncfusion GradientPanel control in Windows Forms applications. GradientPanel is a panel-derived container control that provides advanced background customization with gradients, patterns, and solid colors.
Use this skill when you need to:
GradientPanel is a panel-derived control that acts as a container for other controls. It extends the standard Panel with advanced background rendering capabilities.
Key capabilities:
Control type: Container control (inherits from Panel)
Assembly: Syncfusion.Shared.Base.dll
Namespace: Syncfusion.Windows.Forms.Tools
📄 Read: references/getting-started.md
When to read: Starting a new implementation, need installation guidance, first-time setup
📄 Read: references/background-styles.md
When to read: Need gradient effects, pattern fills, color transitions, custom background styling
📄 Read: references/appearance-customization.md
When to read: Need text styling, background images, layered effects, font customization
📄 Read: references/border-settings.md
When to read: Need custom borders, 3D effects, border colors, selective border sides
📄 Read: references/scroll-sizing.md
When to read: Content exceeds panel size, need auto-scrolling, dynamic panel sizing
using Syncfusion.Windows.Forms.Tools;
using Syncfusion.Drawing;
using System.Drawing;
using System.Windows.Forms;
namespace GradientPanelDemo
{
public partial class Form1 : Form
{
private GradientPanel gradientPanel1;
public Form1()
{
InitializeComponent();
CreateGradientPanel();
}
private void CreateGradientPanel()
{
// Create GradientPanel
gradientPanel1 = new GradientPanel();
gradientPanel1.Size = new Size(400, 300);
gradientPanel1.Location = new Point(20, 20);
// Set gradient background (blue to red, forward diagonal)
gradientPanel1.BackgroundColor = new BrushInfo(
GradientStyle.ForwardDiagonal,
Color.Blue,
Color.Red
);
// Add border
gradientPanel1.BorderStyle = BorderStyle.FixedSingle;
gradientPanel1.BorderColor = Color.White;
// Add to form
this.Controls.Add(gradientPanel1);
// Add child controls to the panel
Label label = new Label();
label.Text = "Gradient Panel Content";
label.ForeColor = Color.White;
label.BackColor = Color.Transparent;
label.Location = new Point(20, 20);
label.AutoSize = true;
gradientPanel1.Controls.Add(label);
}
}
}
// Create panel with solid color background
GradientPanel solidPanel = new GradientPanel();
solidPanel.BackgroundColor = new BrushInfo(Color.MediumBlue);
solidPanel.BorderStyle = BorderStyle.FixedSingle;
solidPanel.BorderColor = Color.Red;
// Create panel with pattern background
GradientPanel patternPanel = new GradientPanel();
patternPanel.BackgroundColor = new BrushInfo(
PatternStyle.LargeCheckerBoard,
Color.Turquoise, // Foreground color
Color.MediumBlue // Background color
);
patternPanel.BorderStyle = BorderStyle.FixedSingle;
// Create header panel with gradient
GradientPanel headerPanel = new GradientPanel();
headerPanel.Dock = DockStyle.Top;
headerPanel.Height = 80;
headerPanel.BackgroundColor = new BrushInfo(
GradientStyle.Horizontal,
Color.FromArgb(0, 120, 215),
Color.FromArgb(0, 80, 150)
);
// Add title label
Label titleLabel = new Label();
titleLabel.Text = "Application Header";
titleLabel.Font = new Font("Segoe UI", 18, FontStyle.Bold);
titleLabel.ForeColor = Color.White;
titleLabel.BackColor = Color.Transparent;
titleLabel.AutoSize = true;
titleLabel.Location = new Point(20, 25);
headerPanel.Controls.Add(titleLabel);
this.Controls.Add(headerPanel);
// Create scrollable content container
GradientPanel contentPanel = new GradientPanel();
contentPanel.Dock = DockStyle.Fill;
contentPanel.BackgroundColor = new BrushInfo(
GradientStyle.Vertical,
Color.WhiteSmoke,
Color.LightGray
);
contentPanel.AutoScroll = true;
contentPanel.AutoScrollMargin = new Size(5, 5);
// Add multiple child controls that exceed panel size
for (int i = 0; i < 20; i++)
{
Button btn = new Button();
btn.Text = $"Button {i + 1}";
btn.Location = new Point(10, 10 + (i * 40));
btn.Size = new Size(200, 30);
contentPanel.Controls.Add(btn);
}
this.Controls.Add(contentPanel);
// Create sidebar with pattern background
GradientPanel sidebarPanel = new GradientPanel();
sidebarPanel.Dock = DockStyle.Left;
sidebarPanel.Width = 200;
sidebarPanel.BackgroundColor = new BrushInfo(
PatternStyle.DarkDownwardDiagonal,
Color.Gray,
Color.DarkGray
);
sidebarPanel.BorderStyle = BorderStyle.Fixed3D;
sidebarPanel.Border3DStyle = Border3DStyle.Etched;
this.Controls.Add(sidebarPanel);
private void CreateCardPanels()
{
FlowLayoutPanel container = new FlowLayoutPanel();
container.Dock = DockStyle.Fill;
container.Padding = new Padding(10);
// Create multiple card-style panels
for (int i = 0; i < 6; i++)
{
GradientPanel card = new GradientPanel();
card.Size = new Size(180, 150);
card.Margin = new Padding(5);
card.BackgroundColor = new BrushInfo(
GradientStyle.PathRectangle,
Color.AliceBlue,
Color.SteelBlue
);
card.BorderStyle = BorderStyle.FixedSingle;
card.BorderColor = Color.SteelBlue;
// Add card content
Label cardTitle = new Label();
cardTitle.Text = $"Card {i + 1}";
cardTitle.Font = new Font("Segoe UI", 12, FontStyle.Bold);
cardTitle.BackColor = Color.Transparent;
cardTitle.AutoSize = true;
cardTitle.Location = new Point(10, 10);
card.Controls.Add(cardTitle);
container.Controls.Add(card);
}
this.Controls.Add(container);
}
| Property | Type | Description |
|---|---|---|
BackgroundColor | BrushInfo | Sets gradient, pattern, or solid background using BrushInfo |
BackColor | Color | Standard background color (use BackgroundColor for gradients) |
BackgroundImage | Image | Background image for the panel |
BackgroundImageLayout | ImageLayout | Layout mode: Stretch, Tile, Center, Zoom |
| Property | Type | Description |
|---|---|---|
BorderStyle | BorderStyle | FixedSingle (2D) or Fixed3D (3D borders) |
Border3DStyle | Border3DStyle | 3D style: Raised, Etched, Sunken, Bump, etc. |
BorderSingle | ButtonBorderStyle | 2D style: Solid, Dotted, Dashed, Inset, Outset |
BorderColor | Color | Color for 2D borders (requires FixedSingle) |
BorderSides | Border3DSide | Specifies which sides have borders: All, Top, Bottom, Left, Right |
| Property | Type | Description |
|---|---|---|
AutoScroll | bool | Enable automatic scroll bars when content exceeds panel |
AutoScrollMargin | Size | Margin width during auto scroll |
AutoScrollMinSize | Size | Minimum logical size for auto scroll region |
AutoSize | bool | Automatically size panel based on content |
AutoSizeMode | AutoSizeMode | GrowOnly or GrowAndShrink resizing behavior |
| Property | Type | Description |
|---|---|---|
Font | Font | Font style for text in the panel |
ForeColor | Color | Color for text and graphics |
Use GradientPanel as a dashboard background with gradient styling to create visual hierarchy and modern appearance.
Divide forms into logical sections using GradientPanels with different background styles for visual organization.
Create sidebars with gradient or pattern backgrounds to distinguish navigation areas from content areas.
Use gradient panels for headers and footers with horizontal gradients for professional appearance.
Group related controls (buttons, labels, inputs) in gradient panels for better visual organization.
Create card-style UI with individual GradientPanels for each card, using PathRectangle gradients.
Apply consistent theming across application using gradient panels with unified color schemes.
Large content areas that need automatic scrolling with styled backgrounds.
BackgroundColor with BrushInfo for gradients/patterns, not BackColorBackColor = Color.Transparent to show gradientForeColor for text visibility over gradientsBorderColor only works with BorderStyle.FixedSingleGradientStyle.PathRectangle or PathEllipse for card-like effectsWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
113 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.npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-winforms