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

Represents a color picker control.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

C#
[TelerikToolboxCategory("Input")]
[Themable]
public class RadColorPicker : Control

Inheritance: objectRadColorPicker

Derived Classes: FormattingColorPickerHighlightColorPicker

Constructors

Initializes a new instance of the RadColorPicker class.

C#
public RadColorPicker()
Remarks:

Use this constructor to create and initialize a new instance of the RadColorPicker 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

ClickEvent

RoutedEvent

Identifies the Click property of the internal SplitButton.

C#
public static readonly RoutedEvent ClickEvent

ColorPropertyPathProperty

DependencyProperty

Identifies the ColorPropertyPath dependency property.

C#
public static readonly DependencyProperty ColorPropertyPathProperty

ColorSelectorStyleProperty

DependencyProperty

Identifies the ColorSelectorStyle dependency property.

C#
public static readonly DependencyProperty ColorSelectorStyleProperty

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

ContentProperty

DependencyProperty

Identifies the Content dependency property.

C#
public static readonly DependencyProperty ContentProperty

ContentTemplateProperty

DependencyProperty

Identifies the ContentTemplate dependency property.

C#
public static readonly DependencyProperty ContentTemplateProperty

Identifies the moment DropDownClosed property of the internal SplitButton.

C#
public static readonly RoutedEvent DropDownClosedEvent

Identifies the DropDownOpened property of the internal SplitButton.

C#
public static readonly RoutedEvent DropDownOpenedEvent

Identifies the DropDownOpening property of the internal SplitButton.

C#
public static readonly RoutedEvent DropDownOpeningEvent

DropDownPlacementProperty

DependencyProperty

Identifies the DropDownPlacement property.

C#
public static readonly DependencyProperty DropDownPlacementProperty

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

IsDropDownOpenProperty

DependencyProperty

Identifies the IsDropDownOpen property.

C#
public static readonly DependencyProperty IsDropDownOpenProperty

Registers 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

MainPalettePanelProperty

DependencyProperty

Identifies the PalettePanelProperty property.

C#
public static readonly DependencyProperty MainPalettePanelProperty

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

Registers 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 SelectedItem dependency property.

C#
public static readonly DependencyProperty SelectedItemProperty

SplitButtonStyleProperty

DependencyProperty

Style for the SplitButton.

C#
public static readonly DependencyProperty SplitButtonStyleProperty

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 additional content template.

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 color selector style.

C#
public Style ColorSelectorStyle { 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 content.

C#
public object Content { get; set; }

ContentTemplate

DataTemplate

Gets or sets the content template.

C#
public DataTemplate ContentTemplate { get; set; }

Gets or sets the drop down position.

C#
public PlacementMode DropDownPlacement { get; set; }
Property Value:

The drop down position.

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 whether the Selector DropDown is open. This is a dependency property.

C#
public bool IsDropDownOpen { get; set; }
Property Value:

True if this instance is drop down open; otherwise, false.

Gets or sets the IsRecentColorsActive property.

C#
public bool IsRecentColorsActive { get; set; }

Gets or sets the main palette source of a RadColorPicker. 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.

MainPalettePanel

ItemsPanelTemplate

Gets or sets the main palette panel.

C#
public ItemsPanelTemplate MainPalettePanel { get; set; }
Property Value:

The main palette panel.

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; }
Property Value:

The recent colors items source.

Gets or sets the selected color.

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

The selected color.

Gets or sets the SelectedItem.

C#
public object SelectedItem { get; set; }

Gets or sets the split button style.

C#
public Style SplitButtonStyle { 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.

C#
protected override void OnMouseWheel(MouseWheelEventArgs e)
Parameters:eMouseWheelEventArgs

Called when color selection happens..

C#
protected virtual void OnSelectedColorChanged()

Resets the theme.

C#
public void ResetTheme()

Events

Click

RoutedEventHandler

Occurs when the action button of the split button is clicked.

C#
public event RoutedEventHandler Click

Occurs when the SplitButton closed.

C#
public event RadRoutedEventHandler DropDownClosed

Occurs when the SplitButton opened.

C#
public event RadRoutedEventHandler DropDownOpened

Occurs when the SplitButton will be opened. Set True for the Handled property and the SplitButton won't open.

C#
public event RadRoutedEventHandler DropDownOpening

Occurs when selected color changed.

C#
public event EventHandler SelectedColorChanged
In this article
DefinitionConstructorsRadColorPicker()FieldsAdditionalContentPropertyAdditionalContentTemplatePropertyAutomaticColorPropertyClickEventColorPropertyPathPropertyColorSelectorStylePropertyCommandParameterPropertyCommandPropertyCommandTargetPropertyContentPropertyContentTemplatePropertyDropDownClosedEventDropDownOpenedEventDropDownOpeningEventDropDownPlacementPropertyHeaderPaletteItemsSourcePropertyHeaderPalettePropertyHeaderPaletteVisibilityPropertyIsDropDownOpenPropertyIsRecentColorsActivePropertyMainPaletteColumnsCountPropertyMainPaletteHeaderTextPropertyMainPaletteItemsSourcePropertyMainPaletteItemsStylePropertyMainPaletteOrientationPropertyMainPalettePanelPropertyMainPalettePropertyNoColorTextPropertyNoColorVisibilityPropertyPaletteItemsTemplatePropertyRecentColorsHeaderTextPropertyRecentColorsItemsSourcePropertySelectedColorPropertySelectedItemPropertySplitButtonStylePropertyStandardPaletteHeaderTextPropertyStandardPaletteItemsSourcePropertyStandardPalettePropertyStandardPaletteVisibilityPropertyPropertiesAdditionalContentAdditionalContentTemplateAutomaticColorColorPropertyPathColorSelectorStyleCommandCommandParameterCommandTargetContentContentTemplateDropDownPlacementHeaderPaletteHeaderPaletteItemsSourceHeaderPaletteVisibilityIsDropDownOpenIsRecentColorsActiveMainPaletteMainPaletteColumnsCountMainPaletteHeaderTextMainPaletteItemsSourceMainPaletteItemsStyleMainPaletteOrientationMainPalettePanelNoColorTextNoColorVisibilityPaletteItemsTemplateRecentColorsHeaderTextRecentColorsItemsSourceSelectedColorSelectedItemSplitButtonStyleStandardPaletteStandardPaletteHeaderTextStandardPaletteItemsSourceStandardPaletteVisibilityMethodsOnApplyTemplate()OnCreateAutomationPeer()OnInitialized(EventArgs)OnMouseWheel(MouseWheelEventArgs)OnSelectedColorChanged()ResetTheme()EventsClickDropDownClosedDropDownOpenedDropDownOpeningSelectedColorChanged
Not finding the help you need?
Contact Support