.NET MAUI Color Picker Implementation
A comprehensive skill for implementing and customizing the Syncfusion .NET MAUI Color Picker (SfColorPicker) control. This control enables users to select colors from palette grids or spectrum gradients, with support for custom colors, recent colors, alpha transparency, and multiple display modes.
When to Use This Skill
Use this skill when you need to:
- Install and set up the Syncfusion .NET MAUI Color Picker
- Implement color selection UI in .NET MAUI applications
- Switch between Palette and Spectrum color modes
- Customize color picker appearance (palettes, sliders, buttons)
- Display color picker inline or as a popup/dropdown
- Handle color selection events (ColorChanging, ColorChanged, ColorSelected)
- Configure recent colors panel and custom color collections
- Implement alpha/opacity control for colors
- Customize display view (icons, templates, dropdown button)
- Add localization support for different cultures
- Enable modern Liquid Glass effect (.NET 10+)
- Troubleshoot color picker implementation issues
Component Overview
The SfColorPicker is a versatile color selection control that provides:
- Two color modes: Palette (predefined color grid) and Spectrum (gradient-based selection)
- Custom colors: Add/remove custom colors to palette
- Recent colors: Automatic tracking of recently selected colors
- Alpha control: Adjustable transparency via alpha slider
- Manual input: Direct color value entry (RGB, HSV, HEX formats)
- Inline & Popup modes: Embed directly in layout or show as dropdown
- No color option: Allow users to deselect/clear color
- Rich customization: Extensive styling for palettes, sliders, buttons, and indicators
- Localization: Multi-language support via resource files
- Modern effects: Liquid Glass/Acrylic visual effect (.NET 10+)
Documentation and Navigation Guide
Getting Started
📄 Read: references/getting-started.md
- Installation via NuGet package
- Handler registration in MauiProgram.cs
- Basic SfColorPicker implementation (XAML & C#)
- First working color picker example
Color Modes and Selection
📄 Read: references/modes-and-selection.md
- ColorMode property (Palette vs Spectrum)
- Setting default SelectedColor
- Color mode switcher visibility
- Recent colors panel (ShowRecentColors)
- ClearRecentColors method
- ShowNoColor option
Customization
📄 Read: references/customization.md
- Input area visibility
- Alpha slider configuration
- Action buttons (Apply/Cancel) visibility and styling
- Button background and label styles
- Recent colors and spectrum input view label styles
- Palette customization (row/column count, spacing, cell shape, size, corner radius)
- Custom palette colors (PaletteColors)
- Selection indicator customization (radius, stroke, thickness)
- Slider thumb customization (fill, radius, stroke, thickness)
- Popup customization (IsOpen, background, relative position)
Display View Customization
📄 Read: references/display-view.md
- Selected color icon (SelectedColorIcon)
- Selected color icon size
- Selected color template (SelectedColorTemplate)
- Drop-down button template (DropDownButtonTemplate)
- Display view height, stroke, and stroke thickness
- Dropdown button width
Inline Rendering
📄 Read: references/inline-rendering.md
- IsInline property
- When to use inline vs popup mode
- Inline color picker implementation
- Use cases for embedded color pickers
Events and Interaction
📄 Read: references/events-and-interaction.md
- ColorChanging event (with cancellation support)
- ColorChanged event (behavior with action buttons)
- ColorSelected event
- ColorChangedCommand
- Event arguments and properties
- Practical examples with UI updates
Advanced Features
📄 Read: references/advanced-features.md
- Localization setup and configuration
- Setting CurrentUICulture
- Resource file structure
- Liquid Glass effect (EnableLiquidGlassEffect)
- Platform requirements (.NET 10+, iOS 26, macOS 26)
- Visual tips and best practices
1---
2name: syncfusion-maui-color-picker
3description: Implements Syncfusion .NET MAUI Color Picker (SfColorPicker). Use when implementing color picker functionality, color selection UI, palette mode, spectrum mode, or alpha slider configuration in .NET MAUI applications. Covers inline rendering, popup customization, color changed events, localization, and liquid glass effect.
4metadata:
5 author: "Syncfusion Inc"
6 version: "34.1.29"
7---
8
9# .NET MAUI Color Picker Implementation
10
11A comprehensive skill for implementing and customizing the Syncfusion .NET MAUI Color Picker (SfColorPicker) control. This control enables users to select colors from palette grids or spectrum gradients, with support for custom colors, recent colors, alpha transparency, and multiple display modes.
12
13## When to Use This Skill
14
15Use this skill when you need to:
16- Install and set up the Syncfusion .NET MAUI Color Picker
17- Implement color selection UI in .NET MAUI applications
18- Switch between Palette and Spectrum color modes
19- Customize color picker appearance (palettes, sliders, buttons)
20- Display color picker inline or as a popup/dropdown
21- Handle color selection events (ColorChanging, ColorChanged, ColorSelected)
22- Configure recent colors panel and custom color collections
23- Implement alpha/opacity control for colors
24- Customize display view (icons, templates, dropdown button)
25- Add localization support for different cultures
26- Enable modern Liquid Glass effect (.NET 10+)
27- Troubleshoot color picker implementation issues
28
29## Component Overview
30
31The **SfColorPicker** is a versatile color selection control that provides:
32
33- **Two color modes**: Palette (predefined color grid) and Spectrum (gradient-based selection)
34- **Custom colors**: Add/remove custom colors to palette
35- **Recent colors**: Automatic tracking of recently selected colors
36- **Alpha control**: Adjustable transparency via alpha slider
37- **Manual input**: Direct color value entry (RGB, HSV, HEX formats)
38- **Inline & Popup modes**: Embed directly in layout or show as dropdown
39- **No color option**: Allow users to deselect/clear color
40- **Rich customization**: Extensive styling for palettes, sliders, buttons, and indicators
41- **Localization**: Multi-language support via resource files
42- **Modern effects**: Liquid Glass/Acrylic visual effect (.NET 10+)
43
44## Documentation and Navigation Guide
45
46### Getting Started
47📄 **Read:** [references/getting-started.md](references/getting-started.md)
48- Installation via NuGet package
49- Handler registration in MauiProgram.cs
50- Basic SfColorPicker implementation (XAML & C#)
51- First working color picker example
52
53### Color Modes and Selection
54📄 **Read:** [references/modes-and-selection.md](references/modes-and-selection.md)
55- ColorMode property (Palette vs Spectrum)
56- Setting default SelectedColor
57- Color mode switcher visibility
58- Recent colors panel (ShowRecentColors)
59- ClearRecentColors method
60- ShowNoColor option
61
62### Customization
63📄 **Read:** [references/customization.md](references/customization.md)
64- Input area visibility
65- Alpha slider configuration
66- Action buttons (Apply/Cancel) visibility and styling
67- Button background and label styles
68- Recent colors and spectrum input view label styles
69- Palette customization (row/column count, spacing, cell shape, size, corner radius)
70- Custom palette colors (PaletteColors)
71- Selection indicator customization (radius, stroke, thickness)
72- Slider thumb customization (fill, radius, stroke, thickness)
73- Popup customization (IsOpen, background, relative position)
74
75### Display View Customization
76📄 **Read:** [references/display-view.md](references/display-view.md)
77- Selected color icon (SelectedColorIcon)
78- Selected color icon size
79- Selected color template (SelectedColorTemplate)
80- Drop-down button template (DropDownButtonTemplate)
81- Display view height, stroke, and stroke thickness
82- Dropdown button width
83
84### Inline Rendering
85📄 **Read:** [references/inline-rendering.md](references/inline-rendering.md)
86- IsInline property
87- When to use inline vs popup mode
88- Inline color picker implementation
89- Use cases for embedded color pickers
90
91### Events and Interaction
92📄 **Read:** [references/events-and-interaction.md](references/events-and-interaction.md)
93- ColorChanging event (with cancellation support)
94- ColorChanged event (behavior with action buttons)
95- ColorSelected event
96- ColorChangedCommand
97- Event arguments and properties
98- Practical examples with UI updates
99
100### Advanced Features
101📄 **Read:** [references/advanced-features.md](references/advanced-features.md)
102- Localization setup and configuration
103- Setting CurrentUICulture
104- Resource file structure
105- Liquid Glass effect (EnableLiquidGlassEffect)
106- Platform requirements (.NET 10+, iOS 26, macOS 26)
107- Visual tips and best practices
108