ColorPickerBase Class
Namespace
MahApps.Metro.Controls
Base Types
  • Control
Derived Types
graph BT Type-->Base0["Control"] Type["ColorPickerBase"] class Type type-node Derived0["ColorCanvas"]-->Type click Derived0 "/mahapps.com/api/MahApps.Metro.Controls/ColorCanvas" Derived1["ColorPicker"]-->Type click Derived1 "/mahapps.com/api/MahApps.Metro.Controls/ColorPicker"

Syntax

[DefaultEvent("SelectedColorChanged")]
public class ColorPickerBase : Control

Attributes

Type Description
DefaultEvent

Events

Name Type Summary
SelectedColorChanged RoutedPropertyChangedEventHandler<Color?>
Occurs when the SelectedColor property is changed.

Fields

Name Field Type Constant Value Summary
AProperty DependencyProperty
Identifies the A dependency property.
static
BProperty DependencyProperty
Identifies the B dependency property.
static
ColorIsUpdating bool
ColorNameProperty DependencyProperty
Identifies the ColorName dependency property.
static
ColorNamesDictionaryProperty DependencyProperty
Identifies the ColorNamesDictionary dependency property.
static
DefaultColorProperty DependencyProperty
Identifies the DefaultColor dependency property.
static
GProperty DependencyProperty
Identifies the G dependency property.
static
HueProperty DependencyProperty
Identifies the Hue dependency property.
static
LabelAlphaChannelProperty DependencyProperty
Identifies the LabelAlphaChannel dependency property.
static
LabelBlueChannelProperty DependencyProperty
Identifies the LabelBlueChannel dependency property.
static
LabelColorNameProperty DependencyProperty
Identifies the LabelColorName dependency property.
static
LabelColorPreviewProperty DependencyProperty
Identifies the LabelColorPreview dependency property.
static
LabelGreenChannelProperty DependencyProperty
Identifies the LabelGreenChannel dependency property.
static
LabelHueChannelProperty DependencyProperty
Identifies the LabelHueChannel dependency property.
static
LabelRedChannelProperty DependencyProperty
Identifies the LabelRedChannel dependency property.
static
LabelSaturationChannelProperty DependencyProperty
Identifies the LabelSaturationChannel dependency property.
static
LabelValueChannelProperty DependencyProperty
Identifies the LabelValueChannel dependency property.
static
RProperty DependencyProperty
Identifies the R dependency property.
static
SaturationProperty DependencyProperty
Identifies the Saturation dependency property.
static
SelectedColorChangedEvent RoutedEvent
Identifies the SelectedColorChanged routed event.
static
SelectedColorProperty DependencyProperty
Identifies the SelectedColor dependency property.
static
SelectedHSVColorProperty DependencyProperty
Identifies the SelectedHSVColor dependency property.
static
UpdateHsvValues bool
ValueProperty DependencyProperty
Identifies the Value dependency property.
static

Properties

Name Property Type Summary
A byte
Gets or sets the Alpha-Channel
B byte
Gets or sets the Blue-Channel
ColorName string
Gets or sets the name of the SelectedColor.
ColorNamesDictionary Dictionary<Color?, string>
Gets or sets a Dictionary<TKey, TValue> for looking up the ColorName
DefaultColor Color?
Gets or sets a default selected Color
G byte
Gets or sets the Green-Channel
Hue double
Gets or sets the Hue-Channel
LabelAlphaChannel object
Gets or sets the label for the Alpha-Channel in the UI
LabelBlueChannel object
Gets or sets the label for the Blue-Channel in the UI
LabelColorName object
Gets or sets the label for the ColorName in the UI
LabelColorPreview object
Gets or sets the label for the Preview in the UI
LabelGreenChannel object
Gets or sets the label for the Green-Channel in the UI
LabelHueChannel object
Gets or sets the label for the Hue-Channel in the UI
LabelRedChannel object
Gets or sets the label for the Red-Channel in the UI
LabelSaturationChannel object
Gets or sets the label for the Saturation-Channel in the UI
LabelValueChannel object
Gets or sets the label for the Value-Channel in the UI
R byte
Gets or sets the Red-Channel
Saturation double
Gets or sets the Saturation-Channel
SelectedColor Color?
Gets or sets the selected Color.
SelectedHSVColor HSVColor
Gets the SelectedColor as HSVColor. This property is read only.
Value double
Gets or sets the Value-Channel