Class
RadColorSelector

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:

cs-api-definition
[TelerikToolboxCategory("Input")]
public class RadColorSelector : ContentControl

Inheritance: objectRadColorSelector

Constructors

RadColorSelector()

Initializes a new instance of the RadColorSelector class.

Declaration

cs-api-definition
public RadColorSelector()

Remarks

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

Fields

AdditionalContentProperty

Identifies the AdditionalContent dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty AdditionalContentProperty

Field Value

DependencyProperty

AdditionalContentTemplateProperty

Identifies the AdditionalContentTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty AdditionalContentTemplateProperty

Field Value

DependencyProperty

AutomaticColorProperty

Identifies the AutomaticColor dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty AutomaticColorProperty

Field Value

DependencyProperty

ColorPropertyPathProperty

Identifies the ColorPropertyPath dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ColorPropertyPathProperty

Field Value

DependencyProperty

CommandParameterProperty

Identifies the CommandParameter dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CommandParameterProperty

Field Value

DependencyProperty

CommandProperty

Identifies the Command dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CommandProperty

Field Value

DependencyProperty

CommandTargetProperty

Identifies the CommandTarget dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CommandTargetProperty

Field Value

DependencyProperty

HeaderPaletteItemsSourceProperty

Identifies the HeaderPaletteItemsSource dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty HeaderPaletteItemsSourceProperty

Field Value

DependencyProperty

HeaderPaletteProperty

Identifies the HeaderPalette dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty HeaderPaletteProperty

Field Value

DependencyProperty

HeaderPaletteVisibilityProperty

Identifies the HeaderPaletteVisibility dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty HeaderPaletteVisibilityProperty

Field Value

DependencyProperty

IsRecentColorsActiveProperty

Identifies the IsRecentColorsActive dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsRecentColorsActiveProperty

Field Value

DependencyProperty

MainPaletteColumnsCountProperty

Identifies the PaletteColumnsCount dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MainPaletteColumnsCountProperty

Field Value

DependencyProperty

MainPaletteHeaderTextProperty

Identifies the MainPalette dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MainPaletteHeaderTextProperty

Field Value

DependencyProperty

MainPaletteItemsSourceProperty

Identifies the MainPaletteItemsSource dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MainPaletteItemsSourceProperty

Field Value

DependencyProperty

MainPaletteItemsStyleProperty

Identifies the StandardPaletteItemsSource dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MainPaletteItemsStyleProperty

Field Value

DependencyProperty

MainPaletteOrientationProperty

Identifies the PaletteOrientation dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MainPaletteOrientationProperty

Field Value

DependencyProperty

MainPaletteProperty

Identifies the MainPalette dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MainPaletteProperty

Field Value

DependencyProperty

NoColorTextProperty

Identifies the NoColor dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty NoColorTextProperty

Field Value

DependencyProperty

NoColorVisibilityProperty

Identifies the NoColorVisibility dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty NoColorVisibilityProperty

Field Value

DependencyProperty

PaletteItemsTemplateProperty

Identifies the PaletteItemsTemplate property.

Declaration

cs-api-definition
public static readonly DependencyProperty PaletteItemsTemplateProperty

Field Value

DependencyProperty

RecentColorsHeaderTextProperty

Registers the RecentColorsHeaderText dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RecentColorsHeaderTextProperty

Field Value

DependencyProperty

RecentColorsItemsSourceProperty

Identifies the RecentColorsItemsSource dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RecentColorsItemsSourceProperty

Field Value

DependencyProperty

SelectedColorProperty

Identifies the SelectedColor dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectedColorProperty

Field Value

DependencyProperty

SelectedItemProperty

Identifies the ColorPropertyPath dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectedItemProperty

Field Value

DependencyProperty

StandardPaletteHeaderTextProperty

Identifies the StandardPalette dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty StandardPaletteHeaderTextProperty

Field Value

DependencyProperty

StandardPaletteItemsSourceProperty

Identifies the StandardPaletteItemsSource dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty StandardPaletteItemsSourceProperty

Field Value

DependencyProperty

StandardPaletteProperty

Identifies the StandardPalette dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty StandardPaletteProperty

Field Value

DependencyProperty

StandardPaletteVisibilityProperty

Identifies the StandardPaletteVisibility dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty StandardPaletteVisibilityProperty

Field Value

DependencyProperty

Properties

AdditionalContent

Gets or sets the additional content placed under the RadColorSelector.

Declaration

cs-api-definition
public object AdditionalContent { get; set; }

Property Value

object

AdditionalContentTemplate

Gets or sets the AdditionalContentTemplate.

Declaration

cs-api-definition
public DataTemplate AdditionalContentTemplate { get; set; }

Property Value

DataTemplate

AutomaticColor

Gets or sets the automatic color.

Declaration

cs-api-definition
public Color AutomaticColor { get; set; }

Property Value

Color

The automatic color.

ColorPropertyPath

Gets or sets the ColorPropertyPath property.

Declaration

cs-api-definition
public string ColorPropertyPath { get; set; }

Property Value

string

Command

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

Declaration

cs-api-definition
[TypeConverter(typeof(CommandConverter))]
public ICommand Command { get; set; }

Property Value

ICommand

CommandParameter

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

Declaration

cs-api-definition
public object CommandParameter { get; set; }

Property Value

object

CommandTarget

The object that the command is being executed on.

Declaration

cs-api-definition
public UIElement CommandTarget { get; set; }

Property Value

UIElement

HeaderPalette

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

Declaration

cs-api-definition
public ColorPreset HeaderPalette { get; set; }

Property Value

ColorPreset

The header palette.that is represent by ColorPreset object.

Remarks

Use this property only if HeaderPaletteVisibility is set to true.

HeaderPaletteItemsSource

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

Declaration

cs-api-definition
public IEnumerable HeaderPaletteItemsSource { get; set; }

Property Value

IEnumerable

The header palette items source.

Remarks

Use this property only if HeaderPaletteVisibility is set to true.

HeaderPaletteVisibility

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

Declaration

cs-api-definition
public Visibility HeaderPaletteVisibility { get; set; }

Property Value

Visibility

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

IsRecentColorsActive

Gets or sets the IsRecentColorsActive property.

Declaration

cs-api-definition
public bool IsRecentColorsActive { get; set; }

Property Value

bool

MainPalette

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

Declaration

cs-api-definition
public ColorPreset MainPalette { get; set; }

Property Value

ColorPreset

The main palette that is represent by ColorPreset object.

MainPaletteColumnsCount

Gets or sets the palette columns count.

Declaration

cs-api-definition
public int MainPaletteColumnsCount { get; set; }

Property Value

int

The palette columns count.

MainPaletteHeaderText

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

Declaration

cs-api-definition
public string MainPaletteHeaderText { get; set; }

Property Value

string

The main palette header text.

MainPaletteItemsSource

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

Declaration

cs-api-definition
public IEnumerable MainPaletteItemsSource { get; set; }

Property Value

IEnumerable

The main palette items source.

MainPaletteItemsStyle

Gets or sets the main palette orientation.

Declaration

cs-api-definition
public Style MainPaletteItemsStyle { get; set; }

Property Value

Style

The main palette orientation.

MainPaletteOrientation

Gets or sets the palette orientation.

Declaration

cs-api-definition
public Orientation MainPaletteOrientation { get; set; }

Property Value

Orientation

The palette orientation.

NoColorText

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

Declaration

cs-api-definition
public string NoColorText { get; set; }

Property Value

string

The no color text.

Remarks

Use this property only if ShowEmptyColor is set to true.

NoColorVisibility

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

Declaration

cs-api-definition
public Visibility NoColorVisibility { get; set; }

Property Value

Visibility

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

PaletteItemsTemplate

Gets or sets the PaletteItemsTemplate.

Declaration

cs-api-definition
public DataTemplate PaletteItemsTemplate { get; set; }

Property Value

DataTemplate

RecentColorsHeaderText

Gets or sets the recent colors header text.

Declaration

cs-api-definition
public string RecentColorsHeaderText { get; set; }

Property Value

string

RecentColorsItemsSource

Gets or sets the recent colors items source.

Declaration

cs-api-definition
public IEnumerable RecentColorsItemsSource { get; set; }

Property Value

IEnumerable

SelectedColor

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

Declaration

cs-api-definition
public Color SelectedColor { get; set; }

Property Value

Color

The items Color.

SelectedItem

Gets or sets the SelectedItem.

Declaration

cs-api-definition
public object SelectedItem { get; set; }

Property Value

object

StandardPalette

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

Declaration

cs-api-definition
public ColorPreset StandardPalette { get; set; }

Property Value

ColorPreset

The standard palette.that is represent by ColorPreset object.

Remarks

Use this property only if StandardPaletteVisibility is set to true.

StandardPaletteHeaderText

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

Declaration

cs-api-definition
public string StandardPaletteHeaderText { get; set; }

Property Value

string

The standard palette header text.

Remarks

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

StandardPaletteItemsSource

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

Declaration

cs-api-definition
public IEnumerable StandardPaletteItemsSource { get; set; }

Property Value

IEnumerable

The standard palette items source.

Remarks

Use this property only if StandardPaletteVisibility is set to true.

StandardPaletteVisibility

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

Declaration

cs-api-definition
public Visibility StandardPaletteVisibility { get; set; }

Property Value

Visibility

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

Methods

OnApplyTemplate()

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

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnCreateAutomationPeer()

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

OnInitialized(EventArgs)

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

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

OnItemClicked()

Invoked when a PaletteView is clicked.

Declaration

cs-api-definition
protected void OnItemClicked()

OnSelectedColorChanged()

Called when color selection happens..

Declaration

cs-api-definition
protected virtual void OnSelectedColorChanged()

Events

ItemClicked

Occurs when RadColorPaletteViewItem is clicked.

Declaration

cs-api-definition
public event RoutedEventHandler ItemClicked

Event Value

RoutedEventHandler

NoColorButtonClicked

Occurs when NoColorButton is clicked.

Declaration

cs-api-definition
public event RoutedEventHandler NoColorButtonClicked

Event Value

RoutedEventHandler

SelectedColorChanged

Occurs when the selected color is changed.

Declaration

cs-api-definition
public event EventHandler SelectedColorChanged

Event Value

EventHandler

SelectedItemChanged

Occurs when the selected item is changed.

Declaration

cs-api-definition
public event EventHandler SelectedItemChanged

Event Value

EventHandler

In this article
DefinitionConstructorsRadColorSelector()FieldsAdditionalContentPropertyAdditionalContentTemplatePropertyAutomaticColorPropertyColorPropertyPathPropertyCommandParameterPropertyCommandPropertyCommandTargetPropertyHeaderPaletteItemsSourcePropertyHeaderPalettePropertyHeaderPaletteVisibilityPropertyIsRecentColorsActivePropertyMainPaletteColumnsCountPropertyMainPaletteHeaderTextPropertyMainPaletteItemsSourcePropertyMainPaletteItemsStylePropertyMainPaletteOrientationPropertyMainPalettePropertyNoColorTextPropertyNoColorVisibilityPropertyPaletteItemsTemplatePropertyRecentColorsHeaderTextPropertyRecentColorsItemsSourcePropertySelectedColorPropertySelectedItemPropertyStandardPaletteHeaderTextPropertyStandardPaletteItemsSourcePropertyStandardPalettePropertyStandardPaletteVisibilityPropertyPropertiesAdditionalContentAdditionalContentTemplateAutomaticColorColorPropertyPathCommandCommandParameterCommandTargetHeaderPaletteHeaderPaletteItemsSourceHeaderPaletteVisibilityIsRecentColorsActiveMainPaletteMainPaletteColumnsCountMainPaletteHeaderTextMainPaletteItemsSourceMainPaletteItemsStyleMainPaletteOrientationNoColorTextNoColorVisibilityPaletteItemsTemplateRecentColorsHeaderTextRecentColorsItemsSourceSelectedColorSelectedItemStandardPaletteStandardPaletteHeaderTextStandardPaletteItemsSourceStandardPaletteVisibilityMethodsOnApplyTemplate()OnCreateAutomationPeer()OnInitialized(EventArgs)OnItemClicked()OnSelectedColorChanged()EventsItemClickedNoColorButtonClickedSelectedColorChangedSelectedItemChanged
Not finding the help you need?
Contact Support