Class
ColorSelectorDropDown

Provides methods and properties for using the ColorSelectorDropDown.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Controls

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

cs-api-definition
public class ColorSelectorDropDown : ControlBase

Inheritance: objectControlBaseColorSelectorDropDown

Inherited Members ControlBase.GetTemplateChild<T>(string)ControlBase.GetRequiredTemplateChild<T>(string, bool)

Constructors

ColorSelectorDropDown()

Initializes a new instance of the ColorSelectorDropDown class.

Declaration

cs-api-definition
public ColorSelectorDropDown()

Fields

HeaderPaletteItemsSourceProperty

The Dependency property HeaderPaletteItemsSourceProperty.

Declaration

cs-api-definition
public static readonly DependencyProperty HeaderPaletteItemsSourceProperty

Field Value

DependencyProperty

MainPaletteItemsSourceProperty

The Dependency property MainPaletteItemsSourceProperty.

Declaration

cs-api-definition
public static readonly DependencyProperty MainPaletteItemsSourceProperty

Field Value

DependencyProperty

MainPaletteOrientationProperty

The Dependency property MainPaletteOrientationProperty.

Declaration

cs-api-definition
public static readonly DependencyProperty MainPaletteOrientationProperty

Field Value

DependencyProperty

SelectedColorProperty

The Dependency property SelectedColorProperty.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectedColorProperty

Field Value

DependencyProperty

Properties

AutomaticColor

Gets or sets the automatic color.

Declaration

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

Property Value

Color

The automatic color.

HeaderPaletteItemsSource

Gets or sets the header palette items source.

Declaration

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

Property Value

IEnumerable<Color>

The header palette items source.

MainPaletteItemsSource

Gets or sets the main palette items source.

Declaration

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

Property Value

IEnumerable<Color>

The main palette items source.

MainPaletteOrientation

Gets or sets the main palette orientation.

Declaration

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

Property Value

Orientation

The main palette orientation.

SelectedColor

Gets or sets the selected color.

Declaration

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

Property Value

Color

The the selected color.

Methods

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call .

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnColorClicked()

Called when a color is clicked.

Declaration

cs-api-definition
protected virtual void OnColorClicked()

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.

Events

ColorClicked

Occurs when some color in the ColorSelectorDropDown gets clicked.

Declaration

cs-api-definition
public event EventHandler ColorClicked

Event Value

EventHandler