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

syncfusion-winforms-color-ui-controlSynfusion Winforms 颜色 ui 控件

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

727

周安装

30

GitHub Stars

公开资料未说明

下载量

238
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

用于辅助界面设计、视觉规范和布局优化,提升组件层级与交互体验。

  • 适合生成 UI 方案、检查视觉一致性及改进页面结构。
  • 使用时需结合品牌规范与设计系统,避免仅堆砌装饰元素。
  • 涉及真实页面改动时,应通过截图或预览工具验证文本溢出与对齐效果。
  • 适用于前端开发与设计协作场景。syncfusion-winforms-color-ui-control 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Implementing ColorUIControl

When to Use This Skill

Use this skill when you need to implement color selection functionality in Windows Forms applications using Syncfusion's ColorUIControl. This skill is relevant when users:

  • Need to add color picker UI to Windows Forms applications
  • Want to provide Visual Studio-style color selection interface
  • Require inline color selection controls (not just dialogs)
  • Need customizable color palettes with predefined color groups
  • Want to integrate color pickers into popup menus or dropdowns
  • Need to implement color selection with System, Standard, Custom, or User-defined colors
  • Are working with.NET Framework Windows Forms applications
  • Want to provide ColorPickerButton dropdown functionality

The ColorUIControl provides a palette-style interface similar to Visual Studio's color picker, offering four color groupings (SystemColors, StandardColors, CustomColors, UserColors) that can be displayed inline in your application or as a dropdown.

Component Overview

ColorUIControl is a Windows Forms control that provides a rich color selection interface with predefined color palettes. Unlike the standard ColorDialog which appears as a modal dialog, ColorUIControl can be placed inline within your application's layout or used as a dropdown control.

Key Capabilities:

  • Four predefined color groups (System, Standard, Custom, User)
  • Inline placement within application layout
  • Popup/dropdown integration via PopupControlContainer
  • Customizable color palettes and tab names
  • Visual Studio-style color picker interface
  • Programmatic and interactive color selection
  • Border style customization and panel stretching

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

When users need to:

  • Install and set up the ColorUIControl component
  • Add ColorUIControl via designer or code
  • Understand assembly dependencies (Syncfusion.Shared.Base)
  • Initialize the control in C# or VB.NET
  • Set initial selected color and color group
  • Import required namespaces (Syncfusion.Windows.Forms)

Color Groups and Selection

📄 Read: references/color-groups.md

When users need to:

  • Understand the four color groups (System, Standard, Custom, User)
  • Control which color groups are displayed
  • Select default color groups programmatically
  • Customize UserColors and UserCustomColors collections
  • Add or remove specific color groups
  • Programmatically populate custom color cells

Appearance and Customization

📄 Read: references/appearance-customization.md

When users need to:

  • Set border styles (FixedSingle, Fixed3D, None)
  • Enable panel stretching for Custom and User color groups
  • Customize tab text for each color group
  • Change font styles for tab text
  • Reset tab names to defaults
  • Adjust visual appearance of the control

Events and Interaction

📄 Read: references/events.md

When users need to:

  • Handle the ColorSelected event
  • Close popups when colors are selected
  • Access selected color from event handlers
  • Work with PopupControlContainer in events
  • Implement color selection callbacks

Advanced Scenarios

📄 Read: references/popup-integration.md

When users need to:

  • Add ColorUIControl to popup menus
  • Integrate with PopupMenu and PopupControlContainer
  • Configure DropDownBarItem for color pickers
  • Show color picker on mouse clicks
  • Use ColorPickerButton for dropdown functionality
  • Create complete popup color selection workflows

Quick Start Example

Here's a minimal example to add ColorUIControl to a Windows Forms application:

using System;
using System.Drawing;
using System.Windows.Forms;
using Syncfusion.Windows.Forms;

public class ColorPickerForm : Form
{
    private ColorUIControl colorUIControl1;

    public ColorPickerForm()
    {
        InitializeComponent();
    }

    private void InitializeComponent()
    {
        // Create ColorUIControl instance
        this.colorUIControl1 = new ColorUIControl();

        // Set size
        this.colorUIControl1.Size = new Size(210, 200);
        this.colorUIControl1.Location = new Point(20, 20);

        // Set initial color and group
        this.colorUIControl1.SelectedColor = Color.OrangeRed;
        this.colorUIControl1.SelectedColorGroup =
            ColorUISelectedGroup.StandardColors;

        // Handle color selection
        this.colorUIControl1.ColorSelected += ColorUIControl1_ColorSelected;

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

        // Form settings
        this.Text = "Color Picker Example";
        this.Size = new Size(300, 300);
    }

    private void ColorUIControl1_ColorSelected(object sender, EventArgs e)
    {
        Color selectedColor = this.colorUIControl1.SelectedColor;
        MessageBox.Show($"Selected Color: {selectedColor.Name}");
    }
}

VB.NET:

Imports System.Drawing
Imports System.Windows.Forms
Imports Syncfusion.Windows.Forms

Public Class ColorPickerForm
    Inherits Form

    Private colorUIControl1 As ColorUIControl

    Public Sub New()
        InitializeComponent()
    End Sub

    Private Sub InitializeComponent()
        ' Create ColorUIControl instance
        Me.colorUIControl1 = New ColorUIControl()

        ' Set size
        Me.colorUIControl1.Size = New Size(210, 200)
        Me.colorUIControl1.Location = New Point(20, 20)

        ' Set initial color and group
        Me.colorUIControl1.SelectedColor = Color.OrangeRed
        Me.colorUIControl1.SelectedColorGroup = _
            ColorUISelectedGroup.StandardColors

        ' Handle color selection
        AddHandler Me.colorUIControl1.ColorSelected, _
            AddressOf ColorUIControl1_ColorSelected

        ' Add to form
        Me.Controls.Add(Me.colorUIControl1)

        ' Form settings
        Me.Text = "Color Picker Example"
        Me.Size = New Size(300, 300)
    End Sub

    Private Sub ColorUIControl1_ColorSelected(sender As Object, e As EventArgs)
        Dim selectedColor As Color = Me.colorUIControl1.SelectedColor
        MessageBox.Show($"Selected Color: {selectedColor.Name}")
    End Sub
End Class

Common Patterns

Pattern 1: Inline Color Picker with Specific Groups

Show only Standard and Custom colors for a simplified picker:

// Display only Standard and Custom color groups
this.colorUIControl1.ColorGroups =
    ColorUIGroups.StandardColors | ColorUIGroups.CustomColors;

// Enable panel stretching for better visual layout
this.colorUIControl1.CustomColorsStretchOnResize = true;

// Set border style
this.colorUIControl1.BorderStyle = BorderStyle.FixedSingle;

Pattern 2: Custom Tab Names

Customize tab text for better context:

// Customize tab names
this.colorUIControl1.StandardTabName = "Web Colors";
this.colorUIControl1.SystemTabName = "System";
this.colorUIControl1.UserTabName = "My Colors";
this.colorUIControl1.CustomTabName = "Theme Palette";

// Customize font
this.colorUIControl1.Font = new Font("Segoe UI", 9F);

Pattern 3: Popup Color Picker

Integrate ColorUIControl into a popup menu:

// Setup: Create PopupMenu, PopupControlContainer, and ColorUIControl
private PopupMenu popupMenu1;
private PopupControlContainer popupContainer1;
private ColorUIControl colorUIControl1;
private Panel colorButton;

private void InitializePopupColorPicker()
{
    // Create and configure ColorUIControl
    colorUIControl1 = new ColorUIControl();
    colorUIControl1.Size = new Size(210, 200);

    // Create PopupControlContainer and add ColorUI
    popupContainer1 = new PopupControlContainer();
    popupContainer1.Controls.Add(colorUIControl1);

    // Create PopupMenu
    popupMenu1 = new PopupMenu();

    // Add DropDownBarItem to popup menu
    var dropDownItem = new DropDownBarItem();
    dropDownItem.PopupControlContainer = popupContainer1;
    popupMenu1.ParentBarItem.Items.Add(dropDownItem);

    // Handle panel click to show popup
    colorButton.MouseUp += ColorButton_MouseUp;

    // Close popup when color selected
    colorUIControl1.ColorSelected += ColorUIControl1_ColorSelected;
}

private void ColorButton_MouseUp(object sender, MouseEventArgs e)
{
    popupMenu1.Show(colorButton, new Point(e.X, e.Y));
}

private void ColorUIControl1_ColorSelected(object sender, EventArgs e)
{
    // Update UI with selected color
    colorButton.BackColor = colorUIControl1.SelectedColor;

    // Close the popup
    var cuiControl = sender as ColorUIControl;
    var pcc = cuiControl.Parent as PopupControlContainer;
    pcc.HidePopup(PopupCloseType.Done);
}

Pattern 4: Customizing User Color Palette

Programmatically populate custom colors:

// Customize UserColors collection with blue gradient
for (int i = 0; i < colorUIControl1.UserColors.Count; i++)
{
    colorUIControl1.UserColors[i] = Color.FromArgb(0, 0, i * 5);
}

// Customize UserCustomColors collection with red gradient
for (int i = 0; i < colorUIControl1.UserCustomColors.Count; i++)
{
    colorUIControl1.UserCustomColors[i] = Color.FromArgb(i * 15, 0, 0);
}

// Make sure UserColors group is displayed
colorUIControl1.ColorGroups =
    ColorUIGroups.StandardColors |
    ColorUIGroups.CustomColors |
    ColorUIGroups.UserColors;

// Select UserColors group by default
colorUIControl1.SelectedColorGroup = ColorUISelectedGroup.UserColors;

// Enable stretching
colorUIControl1.UserColorsStretchOnResize = true;

Key Properties

Selection Properties

  • SelectedColor (Color): Gets or sets the currently selected color
  • SelectedColorGroup (ColorUISelectedGroup): Gets or sets which color group tab is active

- Options: SystemColors, StandardColors, CustomColors, UserColors, None

Display Properties

  • ColorGroups (ColorUIGroups): Controls which color groups are visible (flags enum)

- Combine with: ColorUIGroups.StandardColors | ColorUIGroups.CustomColors

  • BorderStyle (BorderStyle): Sets border appearance (FixedSingle, Fixed3D, None)

Customization Properties

  • CustomColorsStretchOnResize (bool): Enables stretching of Custom colors panel
  • UserColorsStretchOnResize (bool): Enables stretching of User colors panel
  • StandardTabName (string): Custom text for Standard colors tab
  • SystemTabName (string): Custom text for System colors tab
  • CustomTabName (string): Custom text for Custom colors tab
  • UserTabName (string): Custom text for User colors tab
  • Font (Font): Font style for tab text

Collection Properties

  • UserColors (ColorCollection): Collection of colors in the User colors group
  • UserCustomColors (ColorCollection): Additional custom colors in User group

Events

  • ColorSelected: Raised when a color is selected by the user

Common Use Cases

  1. Text Editor Color Selection: Add inline color picker for font colors, background colors, or highlighting
  2. Design Tools: Provide color palette for drawing applications or design tools
  3. Theme Configuration: Allow users to customize application themes with color selection
  4. Chart/Graph Customization: Let users select colors for data series in charts
  5. Form Control Styling: Enable runtime color customization for form controls
  6. Color Property Editors: Integrate into property grids for color-based settings
  7. Popup Color Pickers: Create ColorPickerButton-style dropdowns for toolbar buttons
  8. Custom Color Schemes: Allow users to define and save custom color palettes

Tips and Best Practices

  • Use SelectedColorGroup to automatically focus the appropriate color tab based on user context
  • Enable panel stretching (CustomColorsStretchOnResize, UserColorsStretchOnResize) for better visual layout in larger containers
  • Customize tab names to match your application's terminology (e.g., "Theme Colors", "Brand Colors")
  • Handle ColorSelected event to close popups or update UI immediately when colors are chosen
  • For dropdown functionality, consider using ColorPickerButton instead of manually creating popup infrastructure
  • Limit visible groups using ColorGroups property to simplify the UI when users only need specific color types
  • Programmatically set UserColors when you have a predefined color scheme or theme
  • Reset methods (ResetSelectedColor(), ResetSelectedColorGroup()) are useful for "Clear" or "Default" buttons

For ColorPickerButton dropdown functionality, refer to the Syncfusion documentation on using ColorUIControl as a drop-down control.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

38.66%
按下载量换算92

Claude

28.62%
按下载量换算68

Cursor

19.15%
按下载量换算46

Gemini CLI

10.24%
按下载量换算24

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

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

安装前确认

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

来源信息

继续浏览同类 Skills