New to Telerik UI for WPFStart a free 30-day trial

ColorSelector enables you to use a group of RadcolorPaletteView objects together. Basically it consists of 3 independent palette views and has SelectedColor property.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

C#
[TelerikToolboxCategory("Input")]
public class RadColorSelector : ContentControl

Inheritance: objectRadColorSelector

Constructors

Initializes a new instance of the RadColorSelector class.

C#
public RadColorSelector()
Remarks:

Use this constructor to create and initialize a new instance of the RadColorSelector control.

Fields

AdditionalContentProperty

DependencyProperty

Identifies the AdditionalContent dependency property.

C#
public static readonly DependencyProperty AdditionalContentProperty

Identifies the AdditionalContentTemplate dependency property.

C#
public static readonly DependencyProperty AdditionalContentTemplateProperty

AutomaticColorProperty

DependencyProperty

Identifies the AutomaticColor dependency property.

C#
public static readonly DependencyProperty AutomaticColorProperty

ColorPropertyPathProperty

DependencyProperty

Identifies the ColorPropertyPath dependency property.

C#
public static readonly DependencyProperty ColorPropertyPathProperty

CommandParameterProperty

DependencyProperty

Identifies the CommandParameter dependency property.

C#
public static readonly DependencyProperty CommandParameterProperty

CommandProperty

DependencyProperty

Identifies the Command dependency property.

C#
public static readonly DependencyProperty CommandProperty

CommandTargetProperty

DependencyProperty

Identifies the CommandTarget dependency property.

C#
public static readonly DependencyProperty CommandTargetProperty

Identifies the HeaderPaletteItemsSource dependency property.

C#
public static readonly DependencyProperty HeaderPaletteItemsSourceProperty

HeaderPaletteProperty

DependencyProperty

Identifies the HeaderPalette dependency property.

C#
public static readonly DependencyProperty HeaderPaletteProperty

Identifies the HeaderPaletteVisibility dependency property.

C#
public static readonly DependencyProperty HeaderPaletteVisibilityProperty

Identifies the IsRecentColorsActive dependency property.

C#
public static readonly DependencyProperty IsRecentColorsActiveProperty

Identifies the PaletteColumnsCount dependency property.

C#
public static readonly DependencyProperty MainPaletteColumnsCountProperty

Identifies the MainPalette dependency property.

C#
public static readonly DependencyProperty MainPaletteHeaderTextProperty

Identifies the MainPaletteItemsSource dependency property.

C#
public static readonly DependencyProperty MainPaletteItemsSourceProperty

Identifies the StandardPaletteItemsSource dependency property.

C#
public static readonly DependencyProperty MainPaletteItemsStyleProperty

Identifies the PaletteOrientation dependency property.

C#
public static readonly DependencyProperty MainPaletteOrientationProperty

MainPaletteProperty

DependencyProperty

Identifies the MainPalette dependency property.

C#
public static readonly DependencyProperty MainPaletteProperty

NoColorTextProperty

DependencyProperty

Identifies the NoColor dependency property.

C#
public static readonly DependencyProperty NoColorTextProperty

NoColorVisibilityProperty

DependencyProperty

Identifies the NoColorVisibility dependency property.

C#
public static readonly DependencyProperty NoColorVisibilityProperty

Identifies the PaletteItemsTemplate property.

C#
public static readonly DependencyProperty PaletteItemsTemplateProperty

Registers the RecentColorsHeaderText dependency property.

C#
public static readonly DependencyProperty RecentColorsHeaderTextProperty

Identifies the RecentColorsItemsSource dependency property.

C#
public static readonly DependencyProperty RecentColorsItemsSourceProperty

SelectedColorProperty

DependencyProperty

Identifies the SelectedColor dependency property.

C#
public static readonly DependencyProperty SelectedColorProperty

SelectedItemProperty

DependencyProperty

Identifies the ColorPropertyPath dependency property.

C#
public static readonly DependencyProperty SelectedItemProperty

Identifies the StandardPalette dependency property.

C#
public static readonly DependencyProperty StandardPaletteHeaderTextProperty

Identifies the StandardPaletteItemsSource dependency property.

C#
public static readonly DependencyProperty StandardPaletteItemsSourceProperty

StandardPaletteProperty

DependencyProperty

Identifies the StandardPalette dependency property.

C#
public static readonly DependencyProperty StandardPaletteProperty

Identifies the StandardPaletteVisibility dependency property.

C#
public static readonly DependencyProperty StandardPaletteVisibilityProperty

Properties

Gets or sets the additional content placed under the RadColorSelector.

C#
public object AdditionalContent { get; set; }

Gets or sets the AdditionalContentTemplate.

C#
public DataTemplate AdditionalContentTemplate { get; set; }

Gets or sets the automatic color.

C#
public Color AutomaticColor { get; set; }
Property Value:

The automatic color.

Gets or sets the ColorPropertyPath property.

C#
public string ColorPropertyPath { get; set; }

Gets or sets the command that will be executed when the command source is invoked.

C#
[TypeConverter(typeof(CommandConverter))]
public ICommand Command { get; set; }

Represents a user defined data value that can be passed to the command when it is executed.

C#
public object CommandParameter { get; set; }

CommandTarget

UIElement

The object that the command is being executed on.

C#
public UIElement CommandTarget { get; set; }

Gets or sets the header palette. This is a dependency property.

C#
public ColorPreset HeaderPalette { get; set; }
Property Value:

The header palette.that is represent by ColorPreset object.

Remarks:

Use this property only if HeaderPaletteVisibility is set to true.

Gets or sets the header palette items source. This is a dependency property.

C#
public IEnumerable HeaderPaletteItemsSource { get; set; }
Property Value:

The header palette items source.

Remarks:

Use this property only if HeaderPaletteVisibility is set to true.

Gets or sets a value indicating whether the HeaderPalette is visible or not. This is a dependency property.

C#
public Visibility HeaderPaletteVisibility { get; set; }
Property Value:

True if [header palette visibility]; otherwise, false.

Gets or sets the IsRecentColorsActive property.

C#
public bool IsRecentColorsActive { get; set; }

Gets or sets the main palette source of a RadColorSelector. This is a dependency property.

C#
public ColorPreset MainPalette { get; set; }
Property Value:

The main palette that is represent by ColorPreset object.

Gets or sets the palette columns count.

C#
public int MainPaletteColumnsCount { get; set; }
Property Value:

The palette columns count.

Gets or sets the main palette header text. This is a dependency property.

C#
public string MainPaletteHeaderText { get; set; }
Property Value:

The main palette header text.

Gets or sets the main palette items source. This is a dependency property.

C#
public IEnumerable MainPaletteItemsSource { get; set; }
Property Value:

The main palette items source.

Gets or sets the main palette orientation.

C#
public Style MainPaletteItemsStyle { get; set; }
Property Value:

The main palette orientation.

Gets or sets the palette orientation.

C#
public Orientation MainPaletteOrientation { get; set; }
Property Value:

The palette orientation.

Gets or sets the no color text. This is a dependency property.

C#
public string NoColorText { get; set; }
Property Value:

The no color text.

Remarks:

Use this property only if ShowEmptyColor is set to true.

Gets or sets a value indicating whether or not the empty color to be visible. This is a dependency property.

C#
public Visibility NoColorVisibility { get; set; }
Property Value:

True if [show empty color]; otherwise, false.

Gets or sets the PaletteItemsTemplate.

C#
public DataTemplate PaletteItemsTemplate { get; set; }

Gets or sets the recent colors header text.

C#
public string RecentColorsHeaderText { get; set; }

Gets or sets the recent colors items source.

C#
public IEnumerable RecentColorsItemsSource { get; set; }

Gets or sets the color of the item that is selected from either of the palettes in the RadColorSelector. This is a dependency property.

C#
public Color SelectedColor { get; set; }
Property Value:

The items Color.

Gets or sets the SelectedItem.

C#
public object SelectedItem { get; set; }

Gets or sets the standard palette. This is a dependency property.

C#
public ColorPreset StandardPalette { get; set; }
Property Value:

The standard palette.that is represent by ColorPreset object.

Remarks:

Use this property only if StandardPaletteVisibility is set to true.

Gets or sets the standard palette header text. This is a dependency property.

C#
public string StandardPaletteHeaderText { get; set; }
Property Value:

The standard palette header text.

Remarks:

You can use this property only if the StandardPaletteVisibility is set to true.

Gets or sets the standard palette items source. This is a dependency property.

C#
public IEnumerable StandardPaletteItemsSource { get; set; }
Property Value:

The standard palette items source.

Remarks:

Use this property only if StandardPaletteVisibility is set to true.

Gets or sets a value indicating whether the StandardPalette is visible or not.. This is a dependency property.

C#
public Visibility StandardPaletteVisibility { get; set; }
Property Value:

True if [standard palette visibility]; otherwise, false.

Methods

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call .

C#
public override void OnApplyTemplate()
C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Invoked when a PaletteView is clicked.

C#
protected void OnItemClicked()

Called when color selection happens..

C#
protected virtual void OnSelectedColorChanged()

Events

ItemClicked

RoutedEventHandler

Occurs when RadColorPaletteViewItem is clicked.

C#
public event RoutedEventHandler ItemClicked

NoColorButtonClicked

RoutedEventHandler

Occurs when NoColorButton is clicked.

C#
public event RoutedEventHandler NoColorButtonClicked

Occurs when the selected color is changed.

C#
public event EventHandler SelectedColorChanged

Occurs when the selected item is changed.

C#
public event EventHandler SelectedItemChanged
In this article
DefinitionConstructorsRadColorSelector()FieldsAdditionalContentPropertyAdditionalContentTemplatePropertyAutomaticColorPropertyColorPropertyPathPropertyCommandParameterPropertyCommandPropertyCommandTargetPropertyHeaderPaletteItemsSourcePropertyHeaderPalettePropertyHeaderPaletteVisibilityPropertyIsRecentColorsActivePropertyMainPaletteColumnsCountPropertyMainPaletteHeaderTextPropertyMainPaletteItemsSourcePropertyMainPaletteItemsStylePropertyMainPaletteOrientationPropertyMainPalettePropertyNoColorTextPropertyNoColorVisibilityPropertyPaletteItemsTemplatePropertyRecentColorsHeaderTextPropertyRecentColorsItemsSourcePropertySelectedColorPropertySelectedItemPropertyStandardPaletteHeaderTextPropertyStandardPaletteItemsSourcePropertyStandardPalettePropertyStandardPaletteVisibilityPropertyPropertiesAdditionalContentAdditionalContentTemplateAutomaticColorColorPropertyPathCommandCommandParameterCommandTargetHeaderPaletteHeaderPaletteItemsSourceHeaderPaletteVisibilityIsRecentColorsActiveMainPaletteMainPaletteColumnsCountMainPaletteHeaderTextMainPaletteItemsSourceMainPaletteItemsStyleMainPaletteOrientationNoColorTextNoColorVisibilityPaletteItemsTemplateRecentColorsHeaderTextRecentColorsItemsSourceSelectedColorSelectedItemStandardPaletteStandardPaletteHeaderTextStandardPaletteItemsSourceStandardPaletteVisibilityMethodsOnApplyTemplate()OnCreateAutomationPeer()OnInitialized(EventArgs)OnItemClicked()OnSelectedColorChanged()EventsItemClickedNoColorButtonClickedSelectedColorChangedSelectedItemChanged
Not finding the help you need?
Contact Support