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:
[TelerikToolboxCategory("Input")]
public class RadColorSelector : ContentControl
Inheritance: objectRadColorSelector
Constructors
Initializes a new instance of the RadColorSelector class.
public RadColorSelector()
Use this constructor to create and initialize a new instance of the RadColorSelector control.
Fields
AdditionalContentProperty
DependencyProperty
Identifies the AdditionalContent dependency property.
public static readonly DependencyProperty AdditionalContentProperty
AdditionalContentTemplateProperty
DependencyProperty
Identifies the AdditionalContentTemplate dependency property.
public static readonly DependencyProperty AdditionalContentTemplateProperty
AutomaticColorProperty
DependencyProperty
Identifies the AutomaticColor dependency property.
public static readonly DependencyProperty AutomaticColorProperty
ColorPropertyPathProperty
DependencyProperty
Identifies the ColorPropertyPath dependency property.
public static readonly DependencyProperty ColorPropertyPathProperty
CommandParameterProperty
DependencyProperty
Identifies the CommandParameter dependency property.
public static readonly DependencyProperty CommandParameterProperty
CommandProperty
DependencyProperty
Identifies the Command dependency property.
public static readonly DependencyProperty CommandProperty
CommandTargetProperty
DependencyProperty
Identifies the CommandTarget dependency property.
public static readonly DependencyProperty CommandTargetProperty
HeaderPaletteItemsSourceProperty
DependencyProperty
Identifies the HeaderPaletteItemsSource dependency property.
public static readonly DependencyProperty HeaderPaletteItemsSourceProperty
HeaderPaletteProperty
DependencyProperty
Identifies the HeaderPalette dependency property.
public static readonly DependencyProperty HeaderPaletteProperty
HeaderPaletteVisibilityProperty
DependencyProperty
Identifies the HeaderPaletteVisibility dependency property.
public static readonly DependencyProperty HeaderPaletteVisibilityProperty
IsRecentColorsActiveProperty
DependencyProperty
Identifies the IsRecentColorsActive dependency property.
public static readonly DependencyProperty IsRecentColorsActiveProperty
MainPaletteColumnsCountProperty
DependencyProperty
Identifies the PaletteColumnsCount dependency property.
public static readonly DependencyProperty MainPaletteColumnsCountProperty
MainPaletteHeaderTextProperty
DependencyProperty
Identifies the MainPalette dependency property.
public static readonly DependencyProperty MainPaletteHeaderTextProperty
MainPaletteItemsSourceProperty
DependencyProperty
Identifies the MainPaletteItemsSource dependency property.
public static readonly DependencyProperty MainPaletteItemsSourceProperty
MainPaletteItemsStyleProperty
DependencyProperty
Identifies the StandardPaletteItemsSource dependency property.
public static readonly DependencyProperty MainPaletteItemsStyleProperty
MainPaletteOrientationProperty
DependencyProperty
Identifies the PaletteOrientation dependency property.
public static readonly DependencyProperty MainPaletteOrientationProperty
MainPaletteProperty
DependencyProperty
Identifies the MainPalette dependency property.
public static readonly DependencyProperty MainPaletteProperty
NoColorTextProperty
DependencyProperty
Identifies the NoColor dependency property.
public static readonly DependencyProperty NoColorTextProperty
NoColorVisibilityProperty
DependencyProperty
Identifies the NoColorVisibility dependency property.
public static readonly DependencyProperty NoColorVisibilityProperty
PaletteItemsTemplateProperty
DependencyProperty
Identifies the PaletteItemsTemplate property.
public static readonly DependencyProperty PaletteItemsTemplateProperty
RecentColorsHeaderTextProperty
DependencyProperty
Registers the RecentColorsHeaderText dependency property.
public static readonly DependencyProperty RecentColorsHeaderTextProperty
RecentColorsItemsSourceProperty
DependencyProperty
Identifies the RecentColorsItemsSource dependency property.
public static readonly DependencyProperty RecentColorsItemsSourceProperty
SelectedColorProperty
DependencyProperty
Identifies the SelectedColor dependency property.
public static readonly DependencyProperty SelectedColorProperty
SelectedItemProperty
DependencyProperty
Identifies the ColorPropertyPath dependency property.
public static readonly DependencyProperty SelectedItemProperty
StandardPaletteHeaderTextProperty
DependencyProperty
Identifies the StandardPalette dependency property.
public static readonly DependencyProperty StandardPaletteHeaderTextProperty
StandardPaletteItemsSourceProperty
DependencyProperty
Identifies the StandardPaletteItemsSource dependency property.
public static readonly DependencyProperty StandardPaletteItemsSourceProperty
StandardPaletteProperty
DependencyProperty
Identifies the StandardPalette dependency property.
public static readonly DependencyProperty StandardPaletteProperty
StandardPaletteVisibilityProperty
DependencyProperty
Identifies the StandardPaletteVisibility dependency property.
public static readonly DependencyProperty StandardPaletteVisibilityProperty
Properties
Gets or sets the additional content placed under the RadColorSelector.
public object AdditionalContent { get; set; }
AdditionalContentTemplate
DataTemplate
Gets or sets the AdditionalContentTemplate.
public DataTemplate AdditionalContentTemplate { get; set; }
AutomaticColor
Color
Gets or sets the automatic color.
public Color AutomaticColor { get; set; }
The automatic color.
Gets or sets the ColorPropertyPath property.
public string ColorPropertyPath { get; set; }
Gets or sets the command that will be executed when the command source is invoked.
[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.
public object CommandParameter { get; set; }
CommandTarget
UIElement
The object that the command is being executed on.
public UIElement CommandTarget { get; set; }
Gets or sets the header palette. This is a dependency property.
public ColorPreset HeaderPalette { get; set; }
The header palette.that is represent by ColorPreset object.
Use this property only if HeaderPaletteVisibility is set to true.
Gets or sets the header palette items source. This is a dependency property.
public IEnumerable HeaderPaletteItemsSource { get; set; }
The header palette items source.
Use this property only if HeaderPaletteVisibility is set to true.
HeaderPaletteVisibility
Visibility
Gets or sets a value indicating whether the HeaderPalette is visible or not. This is a dependency property.
public Visibility HeaderPaletteVisibility { get; set; }
True if [header palette visibility]; otherwise, false.
Gets or sets the IsRecentColorsActive property.
public bool IsRecentColorsActive { get; set; }
Gets or sets the main palette source of a RadColorSelector. This is a dependency property.
public ColorPreset MainPalette { get; set; }
The main palette that is represent by ColorPreset object.
Gets or sets the palette columns count.
public int MainPaletteColumnsCount { get; set; }
The palette columns count.
Gets or sets the main palette header text. This is a dependency property.
public string MainPaletteHeaderText { get; set; }
The main palette header text.
Gets or sets the main palette items source. This is a dependency property.
public IEnumerable MainPaletteItemsSource { get; set; }
The main palette items source.
Gets or sets the main palette orientation.
public Style MainPaletteItemsStyle { get; set; }
The main palette orientation.
MainPaletteOrientation
Orientation
Gets or sets the palette orientation.
public Orientation MainPaletteOrientation { get; set; }
The palette orientation.
Gets or sets the no color text. This is a dependency property.
public string NoColorText { get; set; }
The no color text.
Use this property only if ShowEmptyColor is set to true.
NoColorVisibility
Visibility
Gets or sets a value indicating whether or not the empty color to be visible. This is a dependency property.
public Visibility NoColorVisibility { get; set; }
True if [show empty color]; otherwise, false.
PaletteItemsTemplate
DataTemplate
Gets or sets the PaletteItemsTemplate.
public DataTemplate PaletteItemsTemplate { get; set; }
Gets or sets the recent colors header text.
public string RecentColorsHeaderText { get; set; }
Gets or sets the recent colors items source.
public IEnumerable RecentColorsItemsSource { get; set; }
SelectedColor
Color
Gets or sets the color of the item that is selected from either of the palettes in the RadColorSelector. This is a dependency property.
public Color SelectedColor { get; set; }
The items Color.
Gets or sets the SelectedItem.
public object SelectedItem { get; set; }
Gets or sets the standard palette. This is a dependency property.
public ColorPreset StandardPalette { get; set; }
The standard palette.that is represent by ColorPreset object.
Use this property only if StandardPaletteVisibility is set to true.
Gets or sets the standard palette header text. This is a dependency property.
public string StandardPaletteHeaderText { get; set; }
The standard palette header text.
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.
public IEnumerable StandardPaletteItemsSource { get; set; }
The standard palette items source.
Use this property only if StandardPaletteVisibility is set to true.
StandardPaletteVisibility
Visibility
Gets or sets a value indicating whether the StandardPalette is visible or not.. This is a dependency property.
public Visibility StandardPaletteVisibility { get; set; }
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 .
public override void OnApplyTemplate()
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Invoked when a PaletteView is clicked.
protected void OnItemClicked()
Called when color selection happens..
protected virtual void OnSelectedColorChanged()
Events
ItemClicked
RoutedEventHandler
Occurs when RadColorPaletteViewItem is clicked.
public event RoutedEventHandler ItemClicked
NoColorButtonClicked
RoutedEventHandler
Occurs when NoColorButton is clicked.
public event RoutedEventHandler NoColorButtonClicked
Occurs when the selected color is changed.
public event EventHandler SelectedColorChanged
Occurs when the selected item is changed.
public event EventHandler SelectedItemChanged