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

syncfusion-wpf-color-picker-paletteSynfusion WPF 颜色选择器调色板

Agent Skill

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

总安装

1,102

周安装

45

GitHub Stars

2

下载量

356
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/syncfusion/wpf-ui-components-skills --skill syncfusion-wpf-color-picker-palette

简介

同步融合 WPF 颜色选择器调色板组件,用于精确选取颜色的 UI 控件组合。

  • 适用于设计工具、表单编辑等需要用户交互式选色的 WPF 应用界面。
  • 通过 GitHub 安装技能模块,使用 npx skills add 命令完成本地集成与调用。
  • 需验证宿主是否具备完整的 GDI+ 或 Direct2D 图形上下文支持以正确渲染拾色器。
  • 建议参考原始 README 了解 HSB/RGB 模式切换及透明度通道的处理方式。

SKILL.md

Implementing WPF ColorPickerPalette

The ColorPickerPalette is a rich color selection control providing a visual palette interface with theme colors, standard colors, custom colors, and extended color options. Use this skill when you need to implement color selection functionality with flexible customization options.

When to Use This Skill

Use ColorPickerPalette when you need to:

  • Allow users to select colors from predefined palettes (theme, standard, custom)
  • Display recently used colors
  • Provide "More Colors" options for extended selection
  • Customize color panels and visibility
  • Handle color selection events
  • Support RTL flow direction
  • Enable transparent or "No Color" options

Component Overview

ColorPickerPalette provides:

  • Multiple color sources: Theme colors, standard colors, custom colors, recently used
  • Flexible modes: Dropdown (default), Palette (expanded), Split (button + dropdown)
  • Rich customization: Panel visibility, sizing, icons, headers, themes
  • Event support: SelectedBrushChanged event and SelectedCommand binding
  • Accessibility: Tooltip support, keyboard navigation, RTL support

Documentation Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Installation and assembly references
  • Adding ColorPickerPalette via designer, XAML, and C#
  • Control structure and key properties
  • Setting initial colors programmatically
  • Theme and localization support

Color Management

📄 Read: references/color-management.md

  • Accessing and changing colors programmatically
  • Working with color brushes
  • Automatic color defaults
  • Transparent color selection
  • Theme color variants and standard colors
  • Custom colors collection
  • Recently used color panel

Appearance & Customization

📄 Read: references/appearance-customization.md

  • Flow direction (RTL) support
  • Panel visibility options (theme, standard, custom, recently used)
  • Display modes (Dropdown, Palette, Split)
  • Resizing color items and palette
  • Icon customization and sizing
  • Header template customization

Events & Interactions

📄 Read: references/events-interactions.md

  • SelectedBrushChanged event handling
  • SelectedCommand binding patterns
  • "No Color" button functionality
  • Tooltip support for color names
  • More Colors window interaction
  • Header template customization

Quick Start Example

<!-- Basic ColorPickerPalette setup -->
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
        Title="ColorPickerPalette Sample">
    <Grid>
        <!-- Default dropdown mode with theme and standard colors -->
        <syncfusion:ColorPickerPalette x:Name="colorPickerPalette"
                                       Color="Red"
                                       GenerateThemeVariants="True"
                                       GenerateStandardVariants="True"
                                       RecentlyUsedPanelVisibility="Visible"
                                       Width="60"
                                       Height="40" />
    </Grid>
</Window>

C# Code-Behind:

using Syncfusion.Windows.Tools.Controls;

public partial class MainWindow : Window {
    public MainWindow() {
        InitializeComponent();

        // Handle color selection
        colorPickerPalette.SelectedBrushChanged += ColorPickerPalette_SelectedBrushChanged;
    }

    private void ColorPickerPalette_SelectedBrushChanged(object sender, SelectedBrushChangedEventArgs e) {
        var newColor = e.NewColor;
        var newBrush = e.NewBrush;
        // Apply color to UI elements
    }
}

Common Patterns

  • Color Panel Customization: Set ThemePanelVisibility, StandardPanelVisibility, RecentlyUsedPanelVisibility, MoreColorOptionVisibility to control which panels appear
  • Custom Colors Collection: Bind CustomColorsCollection property to ObservableCollection<CustomColor> and set SetCustomColors="True"
  • Split Mode with Command: Set Mode="Split" and bind SelectedCommand for button behavior with dropdown access
  • Expanded Palette Mode: Set Mode="Palette" to show palette always visible; adjust BorderWidth/BorderHeight for color item sizing

See appearance-customization.md and events-interactions.md for complete examples.


Key Properties

PropertyTypePurpose
ColorColorGets/sets the selected color (default: Black)
SelectedBrushBrushGets/sets the selected brush
ModePickerModeDropdown, Palette, or Split mode
ThemesPaletteThemeOffice, Apex, Metro, etc.
GenerateThemeVariantsboolShow/hide theme color variants
GenerateStandardVariantsboolShow/hide standard color variants
CustomColorsCollectionObservableCollection<CustomColor>Custom color items
SetCustomColorsboolEnable custom colors display
BorderWidth / BorderHeightdoubleColor item dimensions
PopupWidth / PopupHeightdoublePalette popup size
RecentlyUsedPanelVisibilityVisibilityShow recently selected colors
ThemePanelVisibilityVisibilityShow theme colors
StandardPanelVisibilityVisibilityShow standard colors
MoreColorOptionVisibilityVisibilityShow "More Colors" button
NoColorVisibilityVisibilityShow transparent/no color button
AutomaticColorColorDefault reset color

Common Use Cases

  • Text Color Picker: Dropdown mode with standard/theme colors + SelectedBrushChanged to apply formatting
  • Shape Fill Selector: Split mode with custom brand colors + SelectedCommand binding
  • Theme Color Picker: Palette mode with GenerateThemeVariants="True" to show color variants
  • Color History Panel: Enable RecentlyUsedPanelVisibility="Visible" for quick access to recent colors

Next Steps

  1. Start with basics: Read getting-started.md to set up ColorPickerPalette
  2. Customize colors: Use color-management.md to manage color sources
  3. Style the control: Apply customizations from appearance-customization.md
  4. Handle interactions: Implement event handling from events-interactions.md

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

39.21%
按下载量换算140

Claude

28.64%
按下载量换算102

Cursor

18.29%
按下载量换算65

Gemini CLI

9.23%
按下载量换算33

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills