ClassRadColorPaletteView
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
RadColorPaletteView()
Declaration
public RadColorPaletteView()
Fields
ColorPropertyPathProperty
Identifies the ColorPropertyPath dependency property.
Declaration
public static readonly DependencyProperty ColorPropertyPathProperty
Field Value
DependencyProperty
PaletteColumnsCountProperty
Identifies the PaletteColumnsCount dependency property.
Declaration
public static readonly DependencyProperty PaletteColumnsCountProperty
Field Value
DependencyProperty
PaletteOrientationProperty
Identifies the PaletteOrientation dependency property.
Declaration
public static readonly DependencyProperty PaletteOrientationProperty
Field Value
DependencyProperty
PaletteProperty
Identifies the Palette dependency property.
Declaration
public static readonly DependencyProperty PaletteProperty
Field Value
DependencyProperty
Properties
ColorPropertyPath
Gets or sets the ColorPropertyPath property.
Palette
Gets or sets the palette view items using ColorPreset enum.
PaletteColumnsCount
Gets or sets the palette columns count.
Declaration
public int PaletteColumnsCount { get; set; }
Property Value
The palette columns count.
PaletteOrientation
Gets or sets the palette orientation.
Declaration
public Orientation PaletteOrientation { get; set; }
Property Value
Orientation
The palette orientation.
Methods
GenerateItemsSource()
Generates the items source.
Declaration
protected virtual IEnumerable GenerateItemsSource()
Returns
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
protected override DependencyObject GetContainerForItemOverride()
Returns
DependencyObject
Overrides
IsItemItsOwnContainerOverride(object)
Determines if the specified item is (or is eligible to be) its own container.
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call .
Declaration
public override void OnApplyTemplate()
Overrides
OnCreateAutomationPeer()
Returns class-specific System.Windows.Automation.Peers.AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
Overrides
OnInitialized(EventArgs)
Raises the event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
Overrides
OnItemsSourceChanged(IEnumerable, IEnumerable)
Called when the SelectorControl.ItemsSource" property changes.
Declaration
protected override void OnItemsSourceChanged(IEnumerable oldValue, IEnumerable newValue)
Parameters
oldValue
Old value of the SelectorControl.ItemsSource" property.
newValue
New value of the SelectorControl.ItemsSource" property.
Overrides
PrepareContainerForItemOverride(DependencyObject, object)
Prepares the specified element to display the specified item.
Declaration
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters
element
DependencyObject
Element used to display the specified item.
item
Specified item.
Overrides