Class
RadColorPaletteView

RadColorPaletteView represent a selectable set of colors ordered in a palette. It is an items control that consists of RadColorPaletteView items.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

cs-api-definition
public class RadColorPaletteView : RadListBox, IMultiSelector, ISelector, ISelectorInteraction, IAutocomplete, IListControl, ICommandSource, IScrollingServiceCore, IScrollingInfo

Inheritance: objectItemsControlSelectorListControlRadListBoxRadColorPaletteView

Implements: IAutocompleteICommandSourceIListControlIMultiSelectorIScrollingInfoIScrollingServiceCoreISelectorISelectorInteraction

Inherited Members RadListBox.DropVisualProviderPropertyRadListBox.DragDropBehaviorPropertyRadListBox.DragVisualProviderPropertyRadListBox.DataConverterPropertyRadListBox.IsItemSelectable(object)RadListBox.OnKeyDown(KeyEventArgs)RadListBox.HandleKeyboardInput(Key)RadListBox.OnTextInput(TextCompositionEventArgs)RadListBox.InitializeTextRetriever()RadListBox.GetDataItem(UIElement)RadListBox.UpdateItems(NotifyCollectionChangedAction, IList, IList)RadListBox.OnSelectionChanged(SelectionChangedEventArgs)RadListBox.OnItemsChanged(NotifyCollectionChangedEventArgs)RadListBox.DropVisualProviderRadListBox.DragDropBehaviorRadListBox.DragVisualProviderRadListBox.DataConverterListControl.CanAutocompleteSelectItemsPropertyListControl.TextSearchModePropertyListControl.CanAutocompleteSelectPartialMatchesPropertyListControl.TypedTextPropertyListControl.CommandPropertyListControl.CommandParameterPropertyListControl.CommandTargetPropertyListControl.CanKeyboardNavigationSelectItemsPropertyListControl.IsScrollIntoViewEnabledPropertyListControl.ClearContainerForItemOverride(DependencyObject, object)ListControl.OnItemsPanelChanged(ItemsPanelTemplate, ItemsPanelTemplate)ListControl.OnPropertyChanged(DependencyPropertyChangedEventArgs)ListControl.ClearContainerStates(FrameworkElement)ListControl.HighlightedIndexChanged(int, Key)ListControl.OnMatchingItemChanged()ListControl.OnAutocompleteBehaviorTypedTextChanged()ListControl.IsIndexSelectable(int)ListControl.OnSelectionModeChanged()ListControl.CanPerformSelection()ListControl.GetScrollViewerPart()ListControl.ScrollIntoView(object)ListControl.ScrollIntoView(int)ListControl.SelectAllCommandListControl.CanAutocompleteSelectItemsListControl.CanAutocompleteSelectPartialMatchesListControl.TextSearchModeListControl.CanKeyboardNavigationSelectItemsListControl.IsScrollIntoViewEnabledListControl.TypedTextListControl.CommandListControl.CommandParameterListControl.CommandTargetListControl.IsItemsHostVisibleListControl.HighlightedItemListControl.KeyboardNavigationListControl.AutocompleteBehaviorListControl.HighlightedIndexItemsControlSelector.SelectionModePropertyItemsControlSelector.IsSynchronizedWithCurrentItemPropertyItemsControlSelector.SelectedIndexPropertyItemsControlSelector.SelectedItemPropertyItemsControlSelector.SelectedValuePropertyItemsControlSelector.SelectedValuePathPropertyItemsControlSelector.TextPropertyItemsControlSelector.TextPathPropertyItemsControlSelector.EnableSelectionCachingPropertyItemsControlSelector.SelectionChangedEventItemsControlSelector.ChangeVisualState(bool)ItemsControlSelector.OnIsEnabledChanged(DependencyPropertyChangedEventArgs)ItemsControlSelector.InitializeValueRetriever()ItemsControlSelector.InitializeSelectionBehavior()ItemsControlSelector.GetSelectionBehavior()ItemsControlSelector.EndInit()ItemsControlSelector.SelectionModeItemsControlSelector.IsSynchronizedWithCurrentItemItemsControlSelector.SelectedItemsItemsControlSelector.SelectionHelperItemsControlSelector.SelectedIndexItemsControlSelector.SelectedItemItemsControlSelector.SelectedValueItemsControlSelector.SelectedValuePathItemsControlSelector.SelectedValueBindingItemsControlSelector.TextBindingItemsControlSelector.TextItemsControlSelector.TextPathItemsControlSelector.EnableSelectionCachingItemsControlSelector.ItemSearchItemsControlSelector.ValueRetrieverItemsControlSelector.TextRetrieverItemsControlSelector.SelectionChanged

Constructors

RadColorPaletteView()

Declaration

cs-api-definition
public RadColorPaletteView()

Fields

ColorPropertyPathProperty

Identifies the ColorPropertyPath dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ColorPropertyPathProperty

Field Value

DependencyProperty

PaletteColumnsCountProperty

Identifies the PaletteColumnsCount dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PaletteColumnsCountProperty

Field Value

DependencyProperty

PaletteOrientationProperty

Identifies the PaletteOrientation dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PaletteOrientationProperty

Field Value

DependencyProperty

PaletteProperty

Identifies the Palette dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PaletteProperty

Field Value

DependencyProperty

Properties

ColorPropertyPath

Gets or sets the ColorPropertyPath property.

Declaration

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

Property Value

string

Palette

Gets or sets the palette view items using ColorPreset enum.

Declaration

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

Property Value

ColorPreset

PaletteColumnsCount

Gets or sets the palette columns count.

Declaration

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

Property Value

int

The palette columns count.

PaletteOrientation

Gets or sets the palette orientation.

Declaration

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

Property Value

Orientation

The palette orientation.

Methods

GenerateItemsSource()

Generates the items source.

Declaration

cs-api-definition
protected virtual IEnumerable GenerateItemsSource()

Returns

IEnumerable

Returns the office palette generated colors as a collection of colors.

GetContainerForItemOverride()

Creates or identifies the element that is used to display the given item.

Declaration

cs-api-definition
protected override DependencyObject GetContainerForItemOverride()

Returns

DependencyObject

Overrides RadListBox.GetContainerForItemOverride()

IsItemItsOwnContainerOverride(object)

Determines if the specified item is (or is eligible to be) its own container.

Declaration

cs-api-definition
protected override bool IsItemItsOwnContainerOverride(object item)

Parameters

item

object

Returns

bool

Overrides ListControl.IsItemItsOwnContainerOverride(object)

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()

Overrides RadListBox.OnApplyTemplate()

OnCreateAutomationPeer()

Returns class-specific System.Windows.Automation.Peers.AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

Overrides RadListBox.OnCreateAutomationPeer()

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.

Overrides RadListBox.OnInitialized(EventArgs)

OnItemsSourceChanged(IEnumerable, IEnumerable)

Called when the SelectorControl.ItemsSource" property changes.

Declaration

cs-api-definition
protected override void OnItemsSourceChanged(IEnumerable oldValue, IEnumerable newValue)

Parameters

oldValue

IEnumerable

Old value of the SelectorControl.ItemsSource" property.

newValue

IEnumerable

New value of the SelectorControl.ItemsSource" property.

Overrides ItemsControlSelector.OnItemsSourceChanged(IEnumerable, IEnumerable)

PrepareContainerForItemOverride(DependencyObject, object)

Prepares the specified element to display the specified item.

Declaration

cs-api-definition
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)

Parameters

element

DependencyObject

Element used to display the specified item.

item

object

Specified item.

Overrides ListControl.PrepareContainerForItemOverride(DependencyObject, object)

ResetTheme()

Resets the theme.

Declaration

cs-api-definition
public void ResetTheme()