[]
The C1ColorPicker control allows end-users to pick a color from a color palette or use the color editor to build advanced colors using the RGB or HSL color models. The C1ColorPicker control keeps a list of the recently used colors.
[TemplatePart(Name = "DropDown", Type = typeof(C1DropDownButton))]
[TemplatePart(Name = "BasicTab", Type = typeof(C1TabItem))]
[TemplatePart(Name = "AdvancedTab", Type = typeof(C1TabItem))]
[TemplatePart(Name = "Tabs", Type = typeof(C1TabControl))]
[TemplatePart(Name = "Basic", Type = typeof(C1BasicColorPickerPart))]
[TemplatePart(Name = "Advanced", Type = typeof(C1AdvancedColorPickerPart))]
[TemplateVisualState(Name = "MouseOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Focused", GroupName = "FocusStates")]
[TemplateVisualState(Name = "Unfocused", GroupName = "FocusStates")]
[TemplateVisualState(Name = "Valid", GroupName = "ValidationStatesStates")]
[TemplateVisualState(Name = "InvalidUnfocused", GroupName = "ValidationStatesStates")]
[TemplateVisualState(Name = "InvalidFocused", GroupName = "ValidationStatesStates")]
[StyleTypedProperty(Property = "ColorContainerStyle", StyleTargetType = typeof(ItemsControl))]
[StyleTypedProperty(Property = "ValidationDecoratorStyle", StyleTargetType = typeof(C1ValidationDecorator))]
public class C1ColorPicker : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient
Name | Description |
---|---|
C1ColorPicker() | Initializes a new instance of a C1ColorPicker. |
Name | Description |
---|---|
ColorContainerStyleProperty | Identifies the ColorContainerStyle dependency property. |
CornerRadiusProperty | Identifies the CornerRadius dependency property. |
DropDownDirectionProperty | Identifies the DropDownDirection dependency property. |
DropDownHeaderProperty | Identifies the DropDownHeader dependency property. |
FocusBrushProperty | Identifies the FocusBrush dependency property. |
InputBackgroundProperty | Identifies the InputBackground dependency property. |
InputForegroundProperty | Identifies the InputForeground dependency property. |
IsDropDownOpenProperty | Identifies the IsDropDownOpen dependency property. |
IsFocusedProperty | Identifies the IsFocused dependency property. |
ModeProperty | Identifies the Mode dependency property. |
MouseOverBrushProperty | Identifies the MouseOverBrush dependency property. |
PaletteProperty | Identifies the Palette dependency property. |
PressedBrushProperty | Identifies the PressedBrush dependency property. |
SelectedBrushProperty | Identifies the SelectedBrush dependency property. |
SelectedColorProperty | Identifies the SelectedColor dependency property. |
ShowAlphaChannelProperty | Identifies the ShowAlphaChannel dependency property. |
ShowRecentColorsProperty | Identifies the ShowRecentColors dependency property. |
ShowTransparentColorProperty | Identifies the ShowTransparentColor dependency property. |
ValidationDecoratorStyleProperty | Identifies the ValidationDecoratorStyle dependency property. |
Name | Description |
---|---|
ColorContainerStyle | Gets or sets the style of the ItemsControl used to show a section of colors (that is recent colors). |
CornerRadius | Gets or sets a value that represents the degree to which the corners of the element are rounded. |
DropDownDirection | Gets or sets the expand direction of the control drop down. |
DropDownHeader | UIElement used as header of the C1.WPF.C1DropDown, |
FocusBrush | Gets or sets the Brush used to highlight the focused control. |
InputBackground | Gets or sets the Brush that fills the background of the input control. |
InputForeground | Gets or sets the Brush applied to the text inside an input control when this text is not selected. |
IsDropDownOpen | Gets or sets a value indicating whether the drop down is opened or closed. |
IsFocused | Returns true if the control has the focus. |
Mode | Gets or sets the mode indicating which of the basic and advanced controls are shown. |
MouseOverBrush | Gets or sets the Brush used to highlight the control when it has the mouse over. |
Palette | Gets or sets the palette displayed in the basic tab. |
PressedBrush | Gets or sets the Brush used to paint a button when it is pressed. |
SelectedBrush | Gets or sets the currently selected Brush. |
SelectedColor | Gets or sets the currently selected color. |
ShowAlphaChannel | Gets or sets whether the alpha channel must be shown in the advanced control. |
ShowRecentColors | Gets or sets a value indicating whether the recent selected colors should be shown or not. |
ShowTransparentColor | Gets or sets a value indicating whether the transparent color is shown in the basic control. |
ValidationDecoratorStyle | Gets or sets the style that is applied to the inner C1.WPF.C1ValidationDecorator. |
Name | Description |
---|---|
ChangeVisualStateCommon(bool) | Updates the current visual state of the Common visual state group to match the object's properties. |
ChangeVisualStateFocus(bool) | Updates the current visual state of the Focus visual state group to match the object's properties. |
OnApplyTemplate() | Builds the visual tree for the C1ColorPicker control when a new template is applied. |
OnCreateAutomationPeer() | Gets an AutomationPeer object used for testing the control. |
OnPropertyChanged(DependencyPropertyChangedEventArgs) | Invoked whenever the effective value of any dependency property has been updated. |
Name | Description |
---|---|
IsDropDownOpenChanged | Event raised when the IsDropDownOpen property has changed. |
IsMouseOverChanged | Event raised when the IsMouseOver property has changed. |
SelectedColorChanged | Event raised when the SelectedColor property has changed. |