Class RadColorPaletteView
RadColorPaletteView represent a selectable set of colors ordered in a palette. It is an items control that consists of RadColorPaletteView items.
Inherited Members
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.Input.dll
Syntax
public class RadColorPaletteView : RadListBox, IMultiSelector, ISelector, ISelectorInteraction, IAutocomplete, IListControl, ICommandSource, IScrollingServiceCore, IScrollingInfo
Remarks
You can set the ItemSource or use Palette property in order to set different colors from some of the ColorPresets or custom implementation.
Constructors
RadColorPaletteView()
Declaration
public RadColorPaletteView()
Fields
ColorPropertyPathProperty
Identifies the ColorPropertyPath dependency property.
Declaration
public static readonly DependencyProperty ColorPropertyPathProperty
Field Value
System.
|
PaletteColumnsCountProperty
Identifies the PaletteColumnsCount dependency property.
Declaration
public static readonly DependencyProperty PaletteColumnsCountProperty
Field Value
System.
|
PaletteOrientationProperty
Identifies the PaletteOrientation dependency property.
Declaration
public static readonly DependencyProperty PaletteOrientationProperty
Field Value
System.
|
PaletteProperty
Identifies the Palette dependency property.
Declaration
public static readonly DependencyProperty PaletteProperty
Field Value
System.
|
Properties
ColorPropertyPath
Gets or sets the ColorPropertyPath property.
Declaration
public string ColorPropertyPath { get; set; }
Property Value
System.
|
Palette
Gets or sets the palette view items using ColorPreset enum.
Declaration
public ColorPreset Palette { get; set; }
Property Value
PaletteColumnsCount
Gets or sets the palette columns count.
Declaration
public int PaletteColumnsCount { get; set; }
Property Value
System. The palette columns count. |
PaletteOrientation
Gets or sets the palette orientation.
Declaration
public Orientation PaletteOrientation { get; set; }
Property Value
System. The palette orientation. |
Methods
GenerateItemsSource()
Generates the items source.
Declaration
protected virtual IEnumerable GenerateItemsSource()
Returns
System. 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
System.
|
Overrides
IsItemItsOwnContainerOverride(Object)
Determines if the specified item is (or is eligible to be) its own container.
Declaration
protected override bool IsItemItsOwnContainerOverride(object item)
Parameters
System.
|
Returns
System.
|
Overrides
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application
code or internal processes (such as a rebuilding layout pass) call
System.
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
System.
|
Overrides
OnInitialized(EventArgs)
Raises the System.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System. The System. |
Overrides
OnItemsSourceChanged(IEnumerable, IEnumerable)
Called when the SelectorControl.ItemsSource" property changes.
Declaration
protected override void OnItemsSourceChanged(IEnumerable oldValue, IEnumerable newValue)
Parameters
System. Old value of the SelectorControl.ItemsSource" property. |
System. 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
System. Element used to display the specified item. |
System. Specified item. |
Overrides
ResetTheme()
Resets the theme.
Declaration
public void ResetTheme()