
syncfusion-winui-color-picker
Guide implementation of the Syncfusion SfColorPicker control in WinUI applications. Use this skill when implementing color picker UI, solid color selection with RGB/HSV/HSL/CMYK models, or gradient brushes (linear and radial). Covers color spectrum customization, opacity control, brush mode switching, and color value management in WinUI/WinUI 3 projects.
- Installs
- 47
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/syncfusion/winui-ui-components-skills --skill syncfusion-winui-color-picker- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads syncfusion-winui-color-picker automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Implementing Syncfusion WinUI Color Picker (SfColorPicker)
When to Use This Skill
Use this skill immediately when the user:
- Needs to implement a color picker UI in a WinUI application
- Wants to select solid colors with multiple color models (RGB, HSV, HSL, CMYK)
- Requires gradient brush creation (linear or radial)
- Needs to customize the color spectrum shape (box or ring)
- Wants to provide color editing with alpha/opacity control
- Needs to switch between solid and gradient brush modes
- Requires hexadecimal color input/output
- Wants to handle color selection change events
- Needs to customize color channel input options (sliders, text inputs)
- Requires programmatic color brush selection
This skill is specifically for the Syncfusion WinUI Color Picker (SfColorPicker) control, not generic color picking solutions.
Component Overview
The SfColorPicker is a WinUI control for selecting and adjusting color values. It supports:
- Solid Colors: RGB, HSV, HSL, CMYK color models with hexadecimal editor
- Gradient Brushes: Linear and radial gradient color brushes with multiple stops
- Color Spectrum: Interactive color selection with box or ring shape
- Opacity Control: Alpha channel adjustment via sliders and text inputs
- Mode Switching: Dynamic switching between solid and gradient modes
- Event Notifications: Real-time color selection change events
Key Namespace:
using Syncfusion.UI.Xaml.Editors;
NuGet Package:
Syncfusion.Editors.WinUI
Documentation and Navigation Guide
Getting Started with SfColorPicker
📄 Read: references/getting-started.md
Read this reference when you need:
- Installation and NuGet package setup instructions
- Basic
SfColorPickercontrol implementation - Namespace and assembly references
- First working XAML + C# example with event handling
- Understanding the control structure and troubleshooting setup issues
Topics covered:
- Creating a WinUI 3 desktop application
- Adding
Syncfusion.Editors.WinUINuGet package - Importing the control namespace
- Basic XAML and C# initialization
- Control structure overview
- Common initial configurations
Solid Color Selection
📄 Read: references/solid-color-selection.md
Read this reference when you need:
- Selecting solid color brushes programmatically or interactively
- Working with different color models (RGB, HSV, HSL, CMYK)
- Switching between color channels at runtime
- Implementing hexadecimal color input/output
- Controlling opacity/alpha values
- Customizing color channel input options (sliders vs text)
- Handling solid color selection change events
Topics covered:
SelectedBrushproperty for programmatic and interactive selectionColorChannelOptions(RGB, HSV, HSL, CMYK) with usage examplesBrushTypeOptionsto restrict solid-only modeAlphaInputOptionsfor opacity control (All, TextInput, SliderInput)IsHexInputVisiblefor hexadecimal editor visibilityColorChannelInputOptions(TextInput, SliderInput, All)ColorEditorsVisibilityMode(Inline, Expandable, Collapsed)SelectedBrushChangedevent handling
Gradient Color Selection
📄 Read: references/gradient-color-selection.md
Read this reference when you need:
- Creating linear gradient brushes with multiple color stops
- Creating radial gradient brushes with gradient origin and center
- Programmatic gradient brush configuration
- Interactive gradient editing at runtime
- Adjusting gradient angles and directions
- Modifying gradient offsets (start/end points, radius)
- Controlling gradient opacity
- Handling gradient color change events
Topics covered:
LinearGradientBrushwithGradientStop,StartPoint,EndPointRadialGradientBrushwithGradientOrigin,Center,RadiusX,RadiusY- Interactive gradient creation with
BrushTypeOptions AxisInputOption— Simple (angle/direction) vs Advanced (precise editors)- Adding, removing, and reordering gradient stops
- Gradient opacity control
SelectedBrushChangedevent for gradient brushes
UI Customization and Modes
📄 Read: references/ui-customization.md
Read this reference when you need:
- Switching between solid, linear, and radial brush modes
- Enabling or restricting specific brush types
- Changing color spectrum shapes (box vs ring)
- Customizing color spectrum components (hue, saturation, value)
- Understanding
BrushTypeOptionscombinations - Runtime brush mode switching behavior
Topics covered:
BrushTypeOptionsconfigurations (SolidColorBrush, LinearGradientBrush, RadialGradientBrush, All)- Interactive brush mode dropdown behavior
ColorSpectrumShape(Box vs Ring) with when-to-use guidanceColorSpectrumComponents(SaturationValue, HueSaturation, HueValue, etc.)- Common customization patterns for different app types
Best Practices and Troubleshooting
📄 Read: references/best-practices.md
Read this reference when you need:
- Guidance on when to use solid vs gradient colors
- Performance optimization tips for gradients
- Common use case implementation patterns
- Troubleshooting color selection or rendering issues
- Accessibility considerations
- Integration patterns (flyout, dialog, property panel)
Topics covered:
- Solid vs gradient decision matrix
- Performance tips: gradient stop limits, caching brushes, debouncing events
- Common use cases: theme picker, drawing tool, text highlighter, background editor
- Flyout, dialog, and property panel integration patterns
- Common mistakes (brush type mismatch, missing null checks)
- Accessibility: keyboard navigation, ARIA attributes, screen reader support
Quick Start Example
XAML
<Page
x:Class="ColorPickerApp.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:editors="using:Syncfusion.UI.Xaml.Editors">
<Grid>
<editors:SfColorPicker
x:Name="colorPicker"
SelectedBrush="Blue"
BrushTypeOptions="All"
SelectedBrushChanged="ColorPicker_SelectedBrushChanged" />
</Grid>
</Page>
C# Code-Behind
using Syncfusion.UI.Xaml.Editors;
using Microsoft.UI.Xaml.Media;
private void ColorPicker_SelectedBrushChanged(object sender, SelectedBrushChangedEventArgs args)
{
if (args?.NewBrush is SolidColorBrush solidBrush)
{
var color = solidBrush.Color; // Access R, G, B, A
}
else if (args?.NewBrush is LinearGradientBrush linearBrush)
{
var stops = linearBrush.GradientStops;
}
else if (args?.NewBrush is RadialGradientBrush radialBrush)
{
var stops = radialBrush.GradientStops;
}
}
Common Patterns
Pattern 1: Solid Color Picker Only
<editors:SfColorPicker
BrushTypeOptions="SolidColorBrush"
ColorChannelOptions="RGB"
IsHexInputVisible="True" />
Pattern 2: Gradient Editor Only
<editors:SfColorPicker
BrushTypeOptions="LinearGradientBrush,RadialGradientBrush"
AxisInputOption="Simple" />
Pattern 3: Programmatic Color Selection
// Solid color
colorPicker.SelectedBrush = new SolidColorBrush(Colors.Red);
// Linear gradient
var linearGradient = new LinearGradientBrush();
linearGradient.StartPoint = new Point(0, 0);
linearGradient.EndPoint = new Point(1, 1);
linearGradient.GradientStops.Add(new GradientStop() { Color = Colors.Yellow, Offset = 0.0 });
linearGradient.GradientStops.Add(new GradientStop() { Color = Colors.Red, Offset = 1.0 });
colorPicker.SelectedBrush = linearGradient;
Pattern 4: Custom Spectrum Shape
<editors:SfColorPicker
ColorSpectrumShape="Ring"
ColorSpectrumComponents="HueSaturation" />
Key Properties Reference
| Property | Type | Default | Purpose |
|---|---|---|---|
SelectedBrush | Brush | Blue | Gets/sets the selected color brush |
BrushTypeOptions | BrushTypeOptions | All | Enables specific brush modes (Solid, Linear, Radial) |
ColorChannelOptions | ColorChannelOptions | RGB | Sets color model (RGB, HSV, HSL, CMYK) |
ColorSpectrumShape | ColorSpectrumShape | Box | Sets spectrum shape (Box or Ring) |
ColorSpectrumComponents | ColorSpectrumComponents | SaturationValue | Defines spectrum axes |
AlphaInputOptions | ColorInputOptions | All | Controls alpha/opacity input visibility |
IsHexInputVisible | bool | true | Shows/hides hexadecimal editor |
ColorChannelInputOptions | ColorInputOptions | All | Controls channel input type (Slider/Text/All) |
ColorEditorsVisibilityMode | ColorEditorsVisibilityMode | Inline | Sets editor visibility (Inline/Expandable/Collapsed) |
AxisInputOption | AxisInputOption | Simple | Controls gradient axis input complexity |
Key Events
| Event | Args | Purpose |
|---|---|---|
SelectedBrushChanged | SelectedBrushChangedEventArgs | Fired when selected brush changes |
Event Args: OldBrush (previous selection) · NewBrush (new selection)
Common Use Cases
- Theme Color Selector — Let users customize app theme colors
- Drawing Tool — Color selection for graphic/drawing applications
- Style Editor — UI element color customization in design tools
- Gradient Background Editor — Create gradient backgrounds or visual effects
- Color Palette Manager — Manage color palettes in creative applications
FAQ
What does the syncfusion-winui-color-picker skill do?
Guide implementation of the Syncfusion SfColorPicker control in WinUI applications. Use this skill when implementing color picker UI, solid color selection with RGB/HSV/HSL/CMYK models, or gradient brushes (linear and radial). Covers color spectrum customization, opacity control, brush mode switching, and color value management in WinUI/WinUI 3 projects.
How do I install syncfusion-winui-color-picker?
Run npx skills add https://github.com/syncfusion/winui-ui-components-skills --skill syncfusion-winui-color-picker in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/syncfusion-winui-color-picker/ (personal) or .claude/skills/syncfusion-winui-color-picker/ (project).
Which AI agents can use syncfusion-winui-color-picker?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is syncfusion-winui-color-picker safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains syncfusion-winui-color-picker?
It is published by syncfusion in syncfusion/winui-ui-components-skills. It has 47 recorded installs.
More from syncfusion/winui-ui-components-skills
syncfusion-winui-getting-started
syncfusion/winui-ui-components-skills
Comprehensive guide for setting up Syncfusion WinUI components, including license registration, NuGet package installation, system requirements verification, and troubleshooting. Use this skill when users need help with Syncfusion licensing, installation, WinUI component configuration, theme setup, or resolving installation errors.
syncfusion-winui-datagrid
syncfusion/winui-ui-components-skills
Guide for implementing Syncfusion WinUI DataGrid (SfDataGrid) for tabular data display in desktop applications. Use this skill when working with data grids, sorting, filtering, grouping, or CRUD operations. Covers data binding, column configuration, master-details views, Excel export, and performance optimization including data virtualization and custom templates.
syncfusion-winui-treeview
syncfusion/winui-ui-components-skills
Comprehensive guide for implementing Syncfusion WinUI TreeView (SfTreeView) control in desktop applications. Use this skill when working with hierarchical data display, tree structures, or node-based navigation. Covers TreeView implementation for file explorers, organization charts, category browsers, and expandable/collapsible data visualization in WinUI applications.
syncfusion-winui-badge
syncfusion/winui-ui-components-skills
Guide implementation of the Syncfusion WinUI Badge control (SfBadge) for displaying notification badges and status indicators. Use this skill when working with badge notifications, unread count badges, BadgeContainer, or notification overlays in WinUI applications. Covers shapes, colors, positioning, alignment, animations, and customization patterns.
syncfusion-winui-polar-charts
syncfusion/winui-ui-components-skills
Open the skill to read its SKILL.md instructions.
syncfusion-winui-treegrid
syncfusion/winui-ui-components-skills
Guide for implementing Syncfusion WinUI TreeGrid (SfTreeGrid) components for displaying hierarchical or self-relational data. Use this skill when working with tree-structured grids, parent-child data relationships, or expandable grid rows. Covers TreeGrid features for organizational charts, file system displays, and multi-level data representation in WinUI applications.
Popular frontend & design skills
setup-matt-pocock-skills
mattpocock/skills
Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.
frontend-design
anthropics/skills
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
hyperframes-animation
heygen-com/hyperframes
All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.
prototype
mattpocock/skills
Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
hyperframes-core
heygen-com/hyperframes
The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.
vercel-react-best-practices
vercel-labs/agent-skills
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.