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

Syntax

[TemplatePart(Name = "PART_SaturationValueBox", Type = typeof(Control))]
[TemplatePart(Name = "PART_ColorEyeDropper", Type = typeof(ColorEyeDropper))]
public class ColorCanvas : ColorPickerBase

Attributes

Type Description
TemplatePart
TemplatePart

Events

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

Fields

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

Properties

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

Methods

Name Return Value Summary
OnApplyTemplate() void