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 "/api/MahApps.Metro.Controls/ColorCanvas" Derived1["ColorPicker"]-->Type click Derived1 "/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 Constant Value Summary
AProperty
Identifies the A dependency property.
static
BProperty
Identifies the B dependency property.
static
ColorIsUpdating
ColorNameProperty
Identifies the ColorName dependency property.
static
ColorNamesDictionaryProperty
Identifies the ColorNamesDictionary dependency property.
static
DefaultColorProperty
Identifies the DefaultColor dependency property.
static
GProperty
Identifies the G dependency property.
static
HueProperty
Identifies the Hue dependency property.
static
LabelAlphaChannelProperty
Identifies the LabelAlphaChannel dependency property.
static
LabelBlueChannelProperty
Identifies the LabelBlueChannel dependency property.
static
LabelColorNameProperty
Identifies the LabelColorName dependency property.
static
LabelColorPreviewProperty
Identifies the LabelColorPreview dependency property.
static
LabelGreenChannelProperty
Identifies the LabelGreenChannel dependency property.
static
LabelHueChannelProperty
Identifies the LabelHueChannel dependency property.
static
LabelRedChannelProperty
Identifies the LabelRedChannel dependency property.
static
LabelSaturationChannelProperty
Identifies the LabelSaturationChannel dependency property.
static
LabelValueChannelProperty
Identifies the LabelValueChannel dependency property.
static
RProperty
Identifies the R dependency property.
static
SaturationProperty
Identifies the Saturation dependency property.
static
SelectedColorChangedEvent
Identifies the SelectedColorChanged routed event.
static
SelectedColorProperty
Identifies the SelectedColor dependency property.
static
SelectedHSVColorProperty
Identifies the SelectedHSVColor dependency property.
static
UpdateHsvValues
ValueProperty
Identifies the Value dependency property.
static

Properties

Name Value 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 System.Collections.Generic.Dictionary`2 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