Token导航 LogoToken导航TokenDH.com
开发只读github未标认证来源可访问许可证需确认审计通过

syncfusion-winforms-gradient-label同步融合 winform 渐变标签

Agent Skill

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

总安装

742

周安装

30

GitHub Stars

1

下载量

233
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

提供带渐变效果的标签控件,增强 WinForms 界面的视觉表现力。

  • 适合用于需要突出显示标题、状态提示或品牌元素的桌面应用程序。
  • 通过 npx 命令从指定 GitHub 仓库安装,集成到主流 AI 编程工具中使用。
  • 使用前应检查目标环境是否已存在同名组件,防止命名冲突或资源覆盖。
  • 注意部分高级效果可能依赖特定渲染后端,需在测试环境中验证兼容性。

SKILL.md

Implementing GradientLabel

An enhanced label control for Windows Forms that provides gradient backgrounds, attractive shading, custom borders, and visual styling capabilities for creating appealing UI labels.

When to Use This Skill

Use this skill when you need to:

  • Gradient Labels: Create labels with gradient backgrounds and color transitions
  • Decorative Headers: Design visually appealing section headers and titles
  • Styled Text Display: Implement fancy labels with custom shading and borders
  • UI Enhancement: Add visual appeal to form labels and descriptive text
  • Custom Branding: Create branded labels with specific color schemes
  • Informational Panels: Build attractive informational labels with background effects

Component Overview

The GradientLabel is an enhanced label control derived from the standard Windows Forms Label that provides:

  • Multiple gradient styles (Horizontal, Vertical, Diagonal, PathRectangle, PathEllipse)
  • Solid and pattern background options
  • Customizable 3D and 2D borders
  • Multi-color gradient support
  • XML serialization for state persistence
  • Full compatibility with standard Label functionality

Key Capabilities:

  • Gradient background with BrushInfo class
  • 6 gradient styles for different visual effects
  • Pattern backgrounds with multiple styles
  • Border customization (sides, styles, colors)
  • Text appearance control including disabled state
  • Save/load gradient settings to XML
  • Inherits all standard Label features (text, font, alignment)

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

When to read: Starting new implementation, setting up dependencies, first-time usage

Topics covered:

  • Assembly deployment and NuGet packages
  • Control dependencies for GradientLabel
  • Adding via Visual Studio designer (toolbox drag-drop)
  • Adding via code (manual instantiation)
  • Basic initialization and configuration
  • Simple gradient setup examples
  • Namespace requirements

Background Styling

📄 Read: references/background-styling.md

When to read: Configuring gradients, setting colors, customizing background appearance

Topics covered:

  • BackgroundColor property and BrushInfo class
  • Brush styles (Solid, Pattern, Gradient, None)
  • Gradient styles (ForwardDiagonal, BackwardDiagonal, Horizontal, Vertical, PathRectangle, PathEllipse)
  • BackColor and ForeColor properties
  • PatternStyle options for pattern backgrounds
  • GradientColors array for multi-color gradients
  • Creating custom color transitions
  • Complete styling examples

Border Configuration

📄 Read: references/border-configuration.md

When to read: Adding borders, customizing border styles, controlling border appearance

Topics covered:

  • BorderSides property (Left, Top, Right, Bottom, Middle, All)
  • BorderStyle options (Raised, Sunken, Flat, Etched, Bump, etc.)
  • BorderColor for 2D border colors
  • Border3DStyle enumeration
  • FixedSingle border mode
  • Selective side borders
  • 3D border effects
  • Complete border examples

Foreground and Text Settings

📄 Read: references/foreground-text-settings.md

When to read: Configuring text appearance, setting font properties, managing disabled state

Topics covered:

  • Text property for label content
  • ForeColor for text color
  • DrawActiveWhenDisabled property
  • Font properties inherited from Label
  • Text alignment options (inherited)
  • TextAlign property usage
  • Disabled state appearance control
  • Text visibility and styling

Serialization

📄 Read: references/serialization.md

When to read: Saving/loading gradient settings, persisting visual state, implementing themes

Topics covered:

  • XML serialization overview
  • Saving BackgroundColor to XML files
  • Loading BackgroundColor from XML files
  • XmlSerializer class usage
  • FileStream and XmlTextWriter implementation
  • Persisting gradient state across sessions
  • Theme save/load patterns
  • Complete serialization examples

Quick Start

Basic Gradient Label Setup

using Syncfusion.Windows.Forms.Tools;
using Syncfusion.Drawing;

// Create and configure GradientLabel
GradientLabel gradientLabel = new GradientLabel();
gradientLabel.Size = new Size(200, 60);
gradientLabel.Location = new Point(20, 20);

// Set gradient background (horizontal red to blue)
gradientLabel.BackgroundColor = new BrushInfo(
    GradientStyle.Horizontal,
    Color.Red,
    Color.MediumBlue
);

// Set text properties
gradientLabel.Text = "Welcome";
gradientLabel.ForeColor = Color.White;
gradientLabel.Font = new Font("Arial", 14, FontStyle.Bold);

// Add to form
this.Controls.Add(gradientLabel);

With Border Styling

// Add 3D border effect
gradientLabel.BorderStyle = Border3DStyle.Raised;
gradientLabel.BorderSides = Border3DSide.All;

Common Patterns

Pattern 1: Section Header with Vertical Gradient

// Create attractive section header
GradientLabel header = new GradientLabel
{
    Size = new Size(300, 50),
    Location = new Point(10, 10),
    Text = "User Information",
    Font = new Font("Segoe UI", 16, FontStyle.Bold),
    TextAlign = ContentAlignment.MiddleCenter,
    ForeColor = Color.White
};

// Vertical gradient from dark to light blue
header.BackgroundColor = new BrushInfo(
    GradientStyle.Vertical,
    Color.DarkBlue,
    Color.LightSkyBlue
);

// Raised 3D border
header.BorderStyle = Border3DStyle.Raised;

Pattern 2: Multi-Color Gradient Label

// Create label with multiple gradient colors
GradientLabel colorfulLabel = new GradientLabel
{
    Size = new Size(250, 80),
    Text = "Special Offer!",
    Font = new Font("Arial", 18, FontStyle.Bold),
    ForeColor = Color.White,
    TextAlign = ContentAlignment.MiddleCenter
};

// Path rectangle gradient with 5 colors
colorfulLabel.BackgroundColor = new BrushInfo(
    GradientStyle.PathRectangle,
    new Color[]
    {
        Color.LavenderBlush,
        Color.LemonChiffon,
        Color.DarkKhaki,
        Color.SandyBrown,
        Color.LightSeaGreen
    }
);

Pattern 3: Styled Status Label

// Create status indicator label
GradientLabel statusLabel = new GradientLabel
{
    Size = new Size(150, 30),
    Text = "Active",
    TextAlign = ContentAlignment.MiddleCenter,
    ForeColor = Color.DarkGreen,
    Font = new Font("Arial", 10, FontStyle.Bold)
};

// Horizontal gradient (light green)
statusLabel.BackgroundColor = new BrushInfo(
    GradientStyle.Horizontal,
    Color.LightGreen,
    Color.PaleGreen
);

// Flat border with custom color
statusLabel.BorderStyle = Border3DStyle.Flat;
statusLabel.BorderSides = Border3DSide.All;
statusLabel.BorderColor = Color.DarkGreen;

Key Properties

Background Properties

  • BackgroundColor: Gets/sets background color and styles using BrushInfo class
  • BackgroundColor.Style: Brush style (Solid, Pattern, Gradient, None)
  • BackgroundColor.GradientStyle: Gradient direction (Horizontal, Vertical, ForwardDiagonal, BackwardDiagonal, PathRectangle, PathEllipse)
  • BackgroundColor.BackColor: Starting color for gradient
  • BackgroundColor.ForeColor: Ending color for gradient
  • BackgroundColor.PatternStyle: Pattern style when using Pattern mode
  • BackgroundColor.GradientColors: Array of colors for multi-color gradients

Border Properties

  • BorderSides: Sides that display border (Left, Top, Right, Bottom, Middle, All)
  • BorderStyle: 3D border style (Raised, RaisedOuter, RaisedInner, Sunken, SunkenOuter, SunkenInner, Etched, Bump, Adjust, Flat)
  • BorderColor: Color for 2D border (effective when BorderStyle is FixedSingle)

Text Properties (Inherited from Label)

  • Text: Label text content
  • Font: Font used for text display
  • ForeColor: Text color
  • TextAlign: Text alignment (ContentAlignment enum)
  • DrawActiveWhenDisabled: Whether text draws normally when control is disabled

Standard Label Properties

  • All properties from System.Windows.Forms.Label are available
  • Size, Location, Enabled, Visible, etc.

Common Use Cases

Form Section Headers

Create visually distinct section headers for grouping related controls in forms.

Dashboard Panels

Build attractive informational panels and status displays in dashboard applications.

Branding Elements

Implement company branding with custom color schemes and gradient effects.

Status Indicators

Design eye-catching status labels with color-coded gradients (success, warning, error).

Decorative Text

Add visual appeal to important text, announcements, or promotional messages.

Theme-Based Labeling

Create themed labels that can be saved and loaded via serialization.

Notes

  • GradientLabel derives from System.Windows.Forms.Label, so all standard Label functionality is available
  • The BrushInfo class provides the gradient and styling capabilities
  • BackgroundColor property is the key to customization
  • BorderColor only works when BorderStyle is set to Border3DStyle.Flat
  • Gradient colors array first entry matches BackColor, last entry matches ForeColor
  • XML serialization allows persisting gradient settings across application sessions
  • Performance is optimized for typical usage; avoid excessive gradient complexity for large numbers of controls

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.19%
按下载量换算80

Claude

31.6%
按下载量换算74

Cursor

18.31%
按下载量换算43

Gemini CLI

9.9%
按下载量换算23

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

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

安装前确认

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

来源信息

继续浏览同类 Skills