Serghei
asked on 29 Jul 2025, 08:09 AM
| edited on 29 Jul 2025, 09:47 AM
Hello, I want to add a custom palette with its own names and colors in WPF. But seems like I can only work with built-in MainPalette, HeaderPalette, AdditionalContent
The image below shows my intention. I want to add not only 2 of them, but as many as I want.
1 Answer, 1 is accepted
0
Stenly
Telerik team
answered on 29 Jul 2025, 01:22 PM
Hello Serghei,
To achieve this requirement, you could use the AddColorPaletteViews SDK example, which showcases how to display custom palettes. It can be found in our GitHub repository:
To hide the main, header, and standard palettes, as well as other elements, you could subscribe to the DropDownOpened event of RadColorPicker and retrieve them via the ChildrenOfType extension method as shown below:
Hello, I've tried. But it didn't work out for me, because the approach you suggested uses <telerik:RadColorPicker.AdditionalContent> AdditionalContent field, however, I need this field as well. Maybe an onther approach can be applied?
Anyway, I've solved my task by adding all my custom colors to the Main palette. That is not critical for me to split the colors, but would be nice.
Stenly
Telerik team
commented on 04 Aug 2025, 12:58 PM
Hello Serghei,
The default color palettes are defined in the default ControlTemplate of the RadColorSelector element, which is present in the default ControlTemplate of the RadColorPicker control.
With this in mind, an alternative approach would be to extract the default ControlTemplate of both of these elements and customize them to follow a similar approach to the AdditionalContent property. Unfortunately, we do not have such an example, however, the following article showcases how to locate and extract our default ControlTemplates in order to introduce such customizations: