RadColorPicker
Represents a color picker control.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.Input.dll
Syntax:
[TelerikToolboxCategory("Input")]
[Themable]
public class RadColorPicker : Control
Inheritance: objectRadColorPicker
Derived Classes:
Constructors
Initializes a new instance of the RadColorPicker class.
public RadColorPicker()
Use this constructor to create and initialize a new instance of the RadColorPicker 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
ClickEvent
RoutedEvent
Identifies the Click property of the internal SplitButton.
public static readonly RoutedEvent ClickEvent
ColorPropertyPathProperty
DependencyProperty
Identifies the ColorPropertyPath dependency property.
public static readonly DependencyProperty ColorPropertyPathProperty
ColorSelectorStyleProperty
DependencyProperty
Identifies the ColorSelectorStyle dependency property.
public static readonly DependencyProperty ColorSelectorStyleProperty
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
ContentProperty
DependencyProperty
Identifies the Content dependency property.
public static readonly DependencyProperty ContentProperty
ContentTemplateProperty
DependencyProperty
Identifies the ContentTemplate dependency property.
public static readonly DependencyProperty ContentTemplateProperty
DropDownClosedEvent
RoutedEvent
Identifies the moment DropDownClosed property of the internal SplitButton.
public static readonly RoutedEvent DropDownClosedEvent
DropDownOpenedEvent
RoutedEvent
Identifies the DropDownOpened property of the internal SplitButton.
public static readonly RoutedEvent DropDownOpenedEvent
DropDownOpeningEvent
RoutedEvent
Identifies the DropDownOpening property of the internal SplitButton.
public static readonly RoutedEvent DropDownOpeningEvent
DropDownPlacementProperty
DependencyProperty
Identifies the DropDownPlacement property.
public static readonly DependencyProperty DropDownPlacementProperty
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
IsDropDownOpenProperty
DependencyProperty
Identifies the IsDropDownOpen property.
public static readonly DependencyProperty IsDropDownOpenProperty
IsRecentColorsActiveProperty
DependencyProperty
Registers 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
MainPalettePanelProperty
DependencyProperty
Identifies the PalettePanelProperty property.
public static readonly DependencyProperty MainPalettePanelProperty
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
Registers 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 SelectedItem dependency property.
public static readonly DependencyProperty SelectedItemProperty
SplitButtonStyleProperty
DependencyProperty
Style for the SplitButton.
public static readonly DependencyProperty SplitButtonStyleProperty
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 additional content template.
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; }
ColorSelectorStyle
Style
Gets or sets the color selector style.
public Style ColorSelectorStyle { 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; }
ContentTemplate
DataTemplate
Gets or sets the content template.
public DataTemplate ContentTemplate { get; set; }
Gets or sets the drop down position.
public PlacementMode DropDownPlacement { get; set; }
The drop down position.
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 whether the Selector DropDown is open. This is a dependency property.
public bool IsDropDownOpen { get; set; }
True if this instance is drop down open; otherwise, false.
Gets or sets the IsRecentColorsActive property.
public bool IsRecentColorsActive { get; set; }
Gets or sets the main palette source of a RadColorPicker. 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.
MainPalettePanel
ItemsPanelTemplate
Gets or sets the main palette panel.
public ItemsPanelTemplate MainPalettePanel { get; set; }
The main palette panel.
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; }
The recent colors items source.
SelectedColor
Color
Gets or sets the selected color.
public Color SelectedColor { get; set; }
The selected color.
Gets or sets the SelectedItem.
public object SelectedItem { get; set; }
SplitButtonStyle
Style
Gets or sets the split button style.
public Style SplitButtonStyle { 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()
OnCreateAutomationPeer()
AutomationPeer
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.
protected override void OnMouseWheel(MouseWheelEventArgs e)
Called when color selection happens..
protected virtual void OnSelectedColorChanged()
Resets the theme.
public void ResetTheme()
Events
Click
RoutedEventHandler
Occurs when the action button of the split button is clicked.
public event RoutedEventHandler Click
Occurs when the SplitButton closed.
public event RadRoutedEventHandler DropDownClosed
Occurs when the SplitButton opened.
public event RadRoutedEventHandler DropDownOpened
Occurs when the SplitButton will be opened. Set True for the Handled property and the SplitButton won't open.
public event RadRoutedEventHandler DropDownOpening
Occurs when selected color changed.
public event EventHandler SelectedColorChanged