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:
public class RadColorPaletteView : RadListBox, IMultiSelector, ISelector, ISelectorInteraction, IAutocomplete, IListControl, ICommandSource, IScrollingServiceCore, IScrollingInfo
Inheritance: objectItemsControlSelectorListControlRadListBoxRadColorPaletteView
Implements:
Inherited Members
Constructors
public RadColorPaletteView()
Fields
ColorPropertyPathProperty
DependencyProperty
Identifies the ColorPropertyPath dependency property.
public static readonly DependencyProperty ColorPropertyPathProperty
PaletteColumnsCountProperty
DependencyProperty
Identifies the PaletteColumnsCount dependency property.
public static readonly DependencyProperty PaletteColumnsCountProperty
PaletteOrientationProperty
DependencyProperty
Identifies the PaletteOrientation dependency property.
public static readonly DependencyProperty PaletteOrientationProperty
PaletteProperty
DependencyProperty
Identifies the Palette dependency property.
public static readonly DependencyProperty PaletteProperty
Properties
Gets or sets the ColorPropertyPath property.
public string ColorPropertyPath { get; set; }
Gets or sets the palette view items using ColorPreset enum.
public ColorPreset Palette { get; set; }
Gets or sets the palette columns count.
public int PaletteColumnsCount { get; set; }
The palette columns count.
PaletteOrientation
Orientation
Gets or sets the palette orientation.
public Orientation PaletteOrientation { get; set; }
The palette orientation.
Methods
Generates the items source.
protected virtual IEnumerable GenerateItemsSource()
Returns the office palette generated colors as a collection of colors.
GetContainerForItemOverride()
DependencyObject
Creates or identifies the element that is used to display the given item.
protected override DependencyObject GetContainerForItemOverride()
DependencyObject
Overrides:
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()
Overrides:
OnCreateAutomationPeer()
AutomationPeer
Returns class-specific System.Windows.Automation.Peers.AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
Overrides:
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.
Overrides:
Called when the SelectorControl.ItemsSource" property changes.
protected override void OnItemsSourceChanged(IEnumerable oldValue, IEnumerable newValue)
Old value of the SelectorControl.ItemsSource" property.
newValueIEnumerableNew value of the SelectorControl.ItemsSource" property.
Overrides:
Prepares the specified element to display the specified item.
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Element used to display the specified item.
itemobjectSpecified item.
Overrides:
Resets the theme.
public void ResetTheme()