New to Telerik UI for WPF? Download free 30-day trial

Customizing Appearance

You can customize the appearance of the ColorPicker component by using the available API.

Color Picker StructureWPF

Customizing the Automatic Color

The default automatic color is Black. To change this, set the AutomaticColor property of RadColorPicker.

To change the word "Automatic" shown in the button, set the NoColorText property of RadColorPicker.

 <telerik:RadColorPicker NoColorText="Select default" AutomaticColor="Green" /> 
A picture showing RadColorPicker with custom automatic color and button text

To hide the automatic color button, set the NoColorVisibility property of RadColorPicker.

<telerik:RadColorPicker NoColorVisibility="Collapsed" /> 
A picture showing RadColorPicker with hidden automatic color button

Customizing Palette Headers

To change the palette header text contents, set the MainPaletteHeaderText, StandardPaletteHeaderText and RecentColorsHeaderText properties of RadColorPicker.

<telerik:RadColorPicker MainPaletteHeaderText="Main Palette" 
            StandardPaletteHeaderText="Standard Palette" 
            RecentColorsHeaderText="Recent Colors" 
A picture showing RadColorPicker with custom palette header texts

To hide the palettes, use the StandardPaletteVisibility and HeaderPaletteVisibility properties of RadColorPicker. The main palette cannot be hidden. The header palette is the first row with colors shown by default in the main palette.

Customizing the Button

The button of the ColorPicker component is represented by RadSplitButton.

The default visualization of the button content is the letter A with an underline matching the selected color. To replace this with custom content, use the ContentTemplate property of the RadColorPicker.

<telerik:RadColorPicker x:Name="colorPicker" SelectedColor="DeepSkyBlue" IsDropDownOpen="True">  
            <TextBlock Text="Ab"> 
                    <SolidColorBrush Color="{Binding ElementName=colorPicker, Path=SelectedColor}"/> 
RadColorPicker with custom button content

Color Picker Custom Content

To change other properties of the button, use the SplitButtonStyle property of RadColorPicker.

    <Style TargetType="telerik:RadSplitButton"> 
        <Setter Property="Foreground" Value="Purple"/> 

Customizing the Color Selector

The content in the drop down of the ColorPicker component is a RadColorSelector control. To change its appearance, set the ColorSelectorStyle property of RadColorPicker.

    <Style TargetType="telerik:RadColorSelector"> 
        <Setter Property="Background" Value="OliveDrab"/> 
In this article