We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to create custom palette using ColorPickerPalette?

Platform: WPF |
Control: ColorPickerPalette

Setting IsCustomTabVisible and SetCustomColors properties

Set IsCustomTabVisible=Visible to make the custom tab visible in ColorPickerPalette. Set SetCustomColors=True to add your own custom colors in the custom tab.

Create custom colors

Create a collection of custom colors that need to be displayed. Custom colors are the instance of CustomColor class.

Setting CustomColorsCollection property

Set the collection of custom colors to CustomColorsCollection property.

Customizing tab header

You can customize the custom tab header text by setting the property CustomHeaderText. You can collapse the header by setting the property CustomHeaderVisibility to Collapsed.




The above code example creates a custom palette in ColorPickerPalette as follows.

2X faster development

The ultimate WPF UI toolkit to boost your development speed.
You must log in to leave a comment
Dec 08, 2016
Can you please provide the InitializeComponent code in VB.net ?

Victory Jessie Selvam D [Syncfusion]
Dec 09, 2016
Imports System.Windows.Media

Class MainWindow
    Dim colors As New System.Collections.ObjectModel.ObservableCollection(Of Syncfusion.Windows.Tools.Controls.CustomColor)()

    Public Sub New()
        colors.Add(New Syncfusion.Windows.Tools.Controls.CustomColor() With {.Color = System.Windows.Media.Colors.RosyBrown, .ColorName = "My RosyBrown"})
        colors.Add(New Syncfusion.Windows.Tools.Controls.CustomColor() With {.Color = System.Windows.Media.Colors.YellowGreen, .ColorName = "My YellowGreen"})
        colors.Add(New Syncfusion.Windows.Tools.Controls.CustomColor() With {.Color = System.Windows.Media.Color.FromArgb(&HFF, &H0, &H0, &H0), .ColorName = "My Black"})
        colors.Add(New Syncfusion.Windows.Tools.Controls.CustomColor() With {.Color = System.Windows.Media.Color.FromArgb(&H78, &H0, &H0, &HFF), .ColorName = "My Transparent Blue"})
        color.CustomColorsCollection = colors
    End Sub
End Class
Ardianto Suhendar
Nov 07, 2018

How do i set automation id for each color?

Kannan R [Syncfusion]
Nov 08, 2018

Hi Ardianto,


Thank you for your update.


We have implemented Color as type of class CustomColor and AutomationID is not applicable for this class. So it cannot be achieved.




Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile