[]
        
(Showing Draft Content)

C1.WPF.Extended.C1AdvancedColorPickerPart

C1AdvancedColorPickerPart Class

Control that allows the user to create a personalized color by changing the different components of the HSL or RGB representation of the color.

Namespace: C1.WPF.Extended
Assembly: C1.WPF.Extended.4.6.2.dll
Syntax
[TemplatePart(Name = "Preview", Type = typeof(C1CheckeredBorder))]
[TemplatePart(Name = "InputRed", Type = typeof(C1NumericBox))]
[TemplatePart(Name = "InputGreen", Type = typeof(C1NumericBox))]
[TemplatePart(Name = "InputBlue", Type = typeof(C1NumericBox))]
[TemplatePart(Name = "InputLuminance", Type = typeof(C1NumericBox))]
[TemplatePart(Name = "InputHue", Type = typeof(C1NumericBox))]
[TemplatePart(Name = "InputSaturation", Type = typeof(C1NumericBox))]
[TemplatePart(Name = "InputAlpha", Type = typeof(C1NumericBox))]
[TemplatePart(Name = "InputWeb", Type = typeof(C1HexColorBox))]
[TemplatePart(Name = "Spectrum", Type = typeof(C1SpectrumColorPicker))]
[TemplatePart(Name = "OkButton", Type = typeof(Button))]
public class C1AdvancedColorPickerPart : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient

Constructors

Name Description
C1AdvancedColorPickerPart()

Initializes a new instance of a C1AdvancedColorPickerPart.

Fields

Name Description
FocusBrushProperty

Identifies the FocusBrush dependency property.

InputBackgroundProperty

Identifies the InputBackground dependency property.

InputForegroundProperty

Identifies the InputForeground dependency property.

MouseOverBrushProperty

Identifies the MouseOverBrush dependency property.

PressedBrushProperty

Identifies the PressedBrush dependency property.

SelectedColorProperty

Identifies the SelectedColor dependency property.

ShowAlphaChannelProperty

Identifies the ShowAlphaChannel dependency property.

Properties

Name Description
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.

MouseOverBrush

Gets or sets the Brush used to highlight the control when it has the mouse over.

PressedBrush

Gets or sets the Brush used to paint a button when it is pressed.

SelectedColor

Gets or sets the currently selected color.

ShowAlphaChannel

Gets or sets whether the alpha channel must be shown.

Methods

Name Description
OnApplyTemplate()

Builds the visual tree for the C1AdvancedColorPickerPart control when a new template is applied.

Events

Name Description
ColorPicked

Occurs when a color is chosen.

SelectedColorChanged

Event raised when the SelectedColor property has changed.