New to Telerik UI for WPF? Start a free 30-day trial

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

You can set the ItemSource or use Palette property in order to set different colors from some of the ColorPresets or custom implementation.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

C#
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

C#
public RadColorPaletteView()

Fields

ColorPropertyPathProperty

DependencyProperty

Identifies the ColorPropertyPath dependency property.

C#
public static readonly DependencyProperty ColorPropertyPathProperty

PaletteColumnsCountProperty

DependencyProperty

Identifies the PaletteColumnsCount dependency property.

C#
public static readonly DependencyProperty PaletteColumnsCountProperty

PaletteOrientationProperty

DependencyProperty

Identifies the PaletteOrientation dependency property.

C#
public static readonly DependencyProperty PaletteOrientationProperty

PaletteProperty

DependencyProperty

Identifies the Palette dependency property.

C#
public static readonly DependencyProperty PaletteProperty

Properties

Gets or sets the ColorPropertyPath property.

C#
public string ColorPropertyPath { get; set; }

Gets or sets the palette view items using ColorPreset enum.

C#
public ColorPreset Palette { get; set; }

Gets or sets the palette columns count.

C#
public int PaletteColumnsCount { get; set; }
Property Value:

The palette columns count.

Gets or sets the palette orientation.

C#
public Orientation PaletteOrientation { get; set; }
Property Value:

The palette orientation.

Methods

Generates the items source.

C#
protected virtual IEnumerable GenerateItemsSource()
Returns:

IEnumerable

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

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

C#
protected override DependencyObject GetContainerForItemOverride()
Returns:

DependencyObject

Overrides: RadListBox.GetContainerForItemOverride()

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

C#
protected override bool IsItemItsOwnContainerOverride(object item)
Parameters:itemobjectReturns:

bool

Overrides: ListControl.IsItemItsOwnContainerOverride(object)

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

Overrides: RadListBox.OnApplyTemplate()

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

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

Overrides: RadListBox.OnCreateAutomationPeer()

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.

Overrides: RadListBox.OnInitialized(EventArgs)

Called when the SelectorControl.ItemsSource" property changes.

C#
protected override void OnItemsSourceChanged(IEnumerable oldValue, IEnumerable newValue)
Parameters:oldValueIEnumerable

Old value of the SelectorControl.ItemsSource" property.

newValueIEnumerable

New value of the SelectorControl.ItemsSource" property.

Overrides: ItemsControlSelector.OnItemsSourceChanged(IEnumerable, IEnumerable)

Prepares the specified element to display the specified item.

C#
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters:elementDependencyObject

Element used to display the specified item.

itemobject

Specified item.

Overrides: ListControl.PrepareContainerForItemOverride(DependencyObject, object)

Resets the theme.

C#
public void ResetTheme()