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.Windows.DependencyProperty
|
PaletteColumnsCountProperty
Identifies the PaletteColumnsCount dependency property.
Declaration
public static readonly DependencyProperty PaletteColumnsCountProperty
Field Value
System.Windows.DependencyProperty
|
PaletteOrientationProperty
Identifies the PaletteOrientation dependency property.
Declaration
public static readonly DependencyProperty PaletteOrientationProperty
Field Value
System.Windows.DependencyProperty
|
PaletteProperty
Identifies the Palette dependency property.
Declaration
public static readonly DependencyProperty PaletteProperty
Field Value
System.Windows.DependencyProperty
|
Properties
ColorPropertyPath
Gets or sets the ColorPropertyPath property.
Declaration
public string ColorPropertyPath { get; set; }
Property Value
System.String
|
Palette
Gets or sets the palette view items using ColorPreset enum.
Declaration
public ColorPreset Palette { get; set; }
Property Value
ColorPreset
|
PaletteColumnsCount
Gets or sets the palette columns count.
Declaration
public int PaletteColumnsCount { get; set; }
Property Value
System.Int32
The palette columns count. |
PaletteOrientation
Gets or sets the palette orientation.
Declaration
public Orientation PaletteOrientation { get; set; }
Property Value
System.Windows.Controls.Orientation
The palette orientation. |
Methods
GenerateItemsSource()
Generates the items source.
Declaration
protected virtual IEnumerable GenerateItemsSource()
Returns
System.Collections.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
protected override DependencyObject GetContainerForItemOverride()
Returns
System.Windows.DependencyObject
|
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.Object
item
|
Returns
System.Boolean
|
Overrides
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.Windows.Controls.Control.ApplyTemplate.
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.Windows.Automation.Peers.AutomationPeer
|
Overrides
OnInitialized(EventArgs)
Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs
e
The System.Windows.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
System.Collections.IEnumerable
oldValue
Old value of the SelectorControl.ItemsSource" property. |
System.Collections.IEnumerable
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
System.Windows.DependencyObject
element
Element used to display the specified item. |
System.Object
item
Specified item. |
Overrides
ResetTheme()
Resets the theme.
Declaration
public void ResetTheme()