Class ColorPicker
SAF ColorPicker
Inheritance
Implements
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
[TemplatePart(Name = "PART_Slider", Type = typeof(Slider))]
[TemplatePart(Name = "PART_RBox", Type = typeof(TextBox))]
[TemplatePart(Name = "PART_GBox", Type = typeof(TextBox))]
[TemplatePart(Name = "PART_BBox", Type = typeof(TextBox))]
public class ColorPicker : Expander, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild, INotifyPropertyChanged
Constructors
View SourceColorPicker()
Default constructor
Generates the base colors
Declaration
public ColorPicker()
Fields
View SourceBaseColorsProperty
The DependencyProperty for BaseColors
Declaration
public static readonly DependencyProperty BaseColorsProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
BaseLineHeightProperty
The DependencyProperty for BaseLineHeight
Declaration
public static readonly DependencyProperty BaseLineHeightProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
ContentProperty
The DependencyProperty for Content
Declaration
public static readonly DependencyProperty ContentProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
CustomColorsProperty
The DependencyProperty for CustomColors
Declaration
public static readonly DependencyProperty CustomColorsProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
ErrorsProperty
The dependency property for Errors
Declaration
public static readonly DependencyProperty ErrorsProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
HeaderLabelWidthProperty
The DependencyProperty for HeaderLabelWidth
Declaration
public static readonly DependencyProperty HeaderLabelWidthProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
HeaderTextProperty
The DependencyProperty for HeaderText
Declaration
public static readonly DependencyProperty HeaderTextProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
HexValueProperty
The dependency property for HexValue
Declaration
public static readonly DependencyProperty HexValueProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
NewColorLabelProperty
The DependencyProperty for NewColorLabel
Declaration
public static readonly DependencyProperty NewColorLabelProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
NewColorProperty
The DependencyProperty for NewColor
Declaration
public static readonly DependencyProperty NewColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
OldColorLabelProperty
The DependencyProperty for OldColorLabel
Declaration
public static readonly DependencyProperty OldColorLabelProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
OldColorProperty
The DependencyProperty for OldColor
Declaration
public static readonly DependencyProperty OldColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
SelectedCustomColorProperty
The DependencyProperty for SelectedCustomColor
Declaration
public static readonly DependencyProperty SelectedCustomColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
SliderColorProperty
The DependencyProperty for SliderColor
Declaration
public static readonly DependencyProperty SliderColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
Properties
View SourceB
The blue value of the Color
Declaration
public int? B { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
BaseColorChangedCommand
Command to Set a new base color to slider and textboxes
Declaration
public ICommand BaseColorChangedCommand { get; }
Property Value
| Type | Description |
|---|---|
| ICommand |
BaseColors
Gets or sets the base color collection
Declaration
public IEnumerable<BaseColor> BaseColors { get; set; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<BaseColor> |
BaseLineHeight
The height of the baseline
Declaration
public double BaseLineHeight { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Content
The preview content of the ColorPicker
Declaration
public IColorPickerPreview Content { get; set; }
Property Value
| Type | Description |
|---|---|
| IColorPickerPreview |
CustomColors
Gets or sets the custom colors
Declaration
public IEnumerable<CustomColor> CustomColors { get; set; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<CustomColor> |
Errors
Gets or sets the errors.
Declaration
public IEnumerable<IError> Errors { get; set; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<IError> |
G
The green value of the Color
Declaration
public int? G { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
HeaderLabelWidth
Gets or set the width of the first column of the Header
Declaration
public double HeaderLabelWidth { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
HeaderText
Gets or sets the header text
Declaration
public string HeaderText { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
HexValue
Gets or sets the hexadecimal value of the color.
Declaration
public string HexValue { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
L
The Luminace value of the color
Declaration
public double L { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
NewColor
gets or sets the new edited color
Declaration
public Color NewColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
NewColorLabel
gets or sets the label for new color
Declaration
public string NewColorLabel { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
OldColor
Gets or sets the initial color
Declaration
public Color OldColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
OldColorLabel
Gets or sets the label for old color
Declaration
public string OldColorLabel { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
OpenCloseExpanderCommand
Gets the command to open or close the Expander
Declaration
public ICommand OpenCloseExpanderCommand { get; }
Property Value
| Type | Description |
|---|---|
| ICommand |
R
The red value of the color
Declaration
public int? R { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
ResetOldColorCommand
Command to reset the initial color
Declaration
public ICommand ResetOldColorCommand { get; }
Property Value
| Type | Description |
|---|---|
| ICommand |
SelectedCustomColor
Gets or sets the selected custom color
Declaration
public CustomColor SelectedCustomColor { get; set; }
Property Value
| Type | Description |
|---|---|
| CustomColor |
SliderColor
The background color of the slider
Declaration
public Color SliderColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
ThumbToolTip
Gets or sets the ToolTip of the slider thumb
Declaration
public string ThumbToolTip { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceOnApplyTemplate()
Overrides OnApplyTemplate
Declaration
public override void OnApplyTemplate()
Overrides
Events
View SourcePropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
| Type | Description |
|---|---|
| PropertyChangedEventHandler |