- Namespace
- MahApps
.Metro .Controls - Base Types
-
- Control
- ColorPickerBase
graph BT
Type-->Base0["ColorPickerBase"]
click Base0 "/api/MahApps.Metro.Controls/ColorPickerBase"
Base0-->Base1["Control"]
Type["ColorPicker"]
class Type type-node
Syntax
[TemplatePart(Name = "PART_Popup", Type = typeof(Popup))]
[TemplatePart(Name = "PART_ColorPaletteStandard", Type = typeof(ColorPalette))]
[TemplatePart(Name = "PART_ColorPaletteAvailable", Type = typeof(ColorPalette))]
[TemplatePart(Name = "PART_ColorPaletteCustom01", Type = typeof(ColorPalette))]
[TemplatePart(Name = "PART_ColorPaletteCustom02", Type = typeof(ColorPalette))]
[TemplatePart(Name = "PART_ColorPaletteRecent", Type = typeof(ColorPalette))]
[TemplatePart(Name = "PART_PopupTabControl", Type = typeof(TabControl))]
[TemplatePart(Name = "PART_ColorPalettesTab", Type = typeof(TabItem))]
[TemplatePart(Name = "PART_AdvancedTab", Type = typeof(TabItem))]
[StyleTypedProperty(Property = nameof(StandardColorPaletteStyle), StyleTargetType = typeof(ColorPalette))]
[StyleTypedProperty(Property = nameof(AvailableColorPaletteStyle), StyleTargetType = typeof(ColorPalette))]
[StyleTypedProperty(Property = nameof(CustomColorPalette01Style), StyleTargetType = typeof(ColorPalette))]
[StyleTypedProperty(Property = nameof(RecentColorPaletteStyle), StyleTargetType = typeof(ColorPalette))]
[StyleTypedProperty(Property = nameof(CustomColorPalette02Style), StyleTargetType = typeof(ColorPalette))]
[StyleTypedProperty(Property = nameof(TabControlStyle), StyleTargetType = typeof(TabControl))]
[StyleTypedProperty(Property = nameof(TabItemStyle), StyleTargetType = typeof(TabItem))]
public class ColorPicker : ColorPickerBase
Attributes
Type | Description |
---|---|
TemplatePart | |
TemplatePart | |
TemplatePart | |
TemplatePart | |
TemplatePart | |
TemplatePart | |
TemplatePart | |
TemplatePart | |
TemplatePart | |
StyleTypedProperty | |
StyleTypedProperty | |
StyleTypedProperty | |
StyleTypedProperty | |
StyleTypedProperty | |
StyleTypedProperty | |
StyleTypedProperty |
Events
Name | Type | Summary |
---|---|---|
DropDownClosed | EventHandler |
Occurs when the DropDown is closed.
|
DropDownOpened | EventHandler |
Occurs when the DropDown is opened.
|
SelectedColorChanged | Routed |
Occurs when the
SelectedColor property is changed.
Inherited from ColorPickerBase
|
Fields
Properties
Name | Value | Summary |
---|---|---|
A | byte |
Gets or sets the Alpha-Channel
Inherited from ColorPickerBase
|
Add |
Add |
Gets or sets when to add the
SelectedColor to the RecentColorPaletteItemsSource
|
AdvancedTabHeader | object | |
Advanced |
DataTemplate | |
Available |
object |
Gets or sets the
Header of the available ColorPalette .
|
Available |
DataTemplate |
Gets or sets the
HeaderTemplate of the available ColorPalette .
|
Available |
IEnumerable |
Gets or sets the
ItemsControl.ItemsSource of the available ColorPalette .
|
Available |
Style |
Gets or sets the
FrameworkElement.Style of the available ColorPalette .
|
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 |
Gets or sets a
Dictionary<TKey, TValue> for looking up the ColorName
Inherited from ColorPickerBase
|
Color |
object | |
Color |
DataTemplate | |
Custom |
object |
Gets or sets the
Header of the custom ColorPalette (1/2).
|
Custom |
DataTemplate |
Gets or sets the
HeaderTemplate of the custom ColorPalette (1/2).
|
Custom |
IEnumerable |
Gets or sets the
ItemsControl.ItemsSource of the custom ColorPalette (1/2).
|
Custom |
Style |
Gets or sets the
FrameworkElement.Style of the custom ColorPalette (1/2).
|
Custom |
object |
Gets or sets the
Header of the custom ColorPalette (2/2).
|
Custom |
DataTemplate |
Gets or sets the
HeaderTemplate of the custom ColorPalette (2/2).
|
Custom |
IEnumerable |
Gets or sets the
ItemsControl.ItemsSource of the custom ColorPalette (2/2).
|
Custom |
Style |
Gets or sets the
FrameworkElement.Style of the custom ColorPalette (2/2).
|
DefaultColor | Color? |
Gets or sets a default selected
Color
Inherited from ColorPickerBase
|
DropDownHeight | double |
Gets or sets the height of the DropDown.
|
DropDownWidth | double |
Gets or sets the width of the DropDown.
|
G | byte |
Gets or sets the Green-Channel
Inherited from ColorPickerBase
|
Hue | double |
Gets or sets the Hue-Channel
Inherited from ColorPickerBase
|
IsAdvancedTabVisible | bool |
Gets or sets the visibility of the
ColorCanvas TabItem .
|
Is |
bool |
Gets or sets the visibility of the available
ColorPalette .
|
Is |
bool |
Gets or sets the visibility of the
ColorPalette TabItem .
|
Is |
bool |
Gets or sets the visibility of the custom
ColorPalette (1/2).
|
Is |
bool |
Gets or sets the visibility of the custom
ColorPalette (2/2).
|
IsDropDownOpen | bool |
Whether or not the "popup" for this control is currently open
|
Is |
bool |
Gets or sets the visibility of the recent
ColorPalette .
|
Is |
bool |
Gets or sets the visibility of the standard
ColorPalette .
|
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
|
Label |
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
|
Recent |
object |
Gets or sets the
Header of the recent ColorPalette .
|
Recent |
DataTemplate |
Gets or sets the
HeaderTemplate of the recent ColorPalette .
|
Recent |
IEnumerable |
Gets or sets the
ItemsControl.ItemsSource of the recent ColorPalette .
|
Recent |
Style |
Gets or sets the
FrameworkElement.Style of the recent ColorPalette .
|
Saturation | double |
Gets or sets the Saturation-Channel
Inherited from ColorPickerBase
|
SelectedColor | Color? |
Gets or sets the selected
Color .
Inherited from ColorPickerBase
|
Selected |
DataTemplate |
Gets or sets the
DataTemplate for the SelectedColor
|
SelectedHSVColor | HSVColor |
Gets the
SelectedColor as HSVColor . This property is read only.
Inherited from ColorPickerBase
|
Standard |
object |
Gets or sets the
Header of the standard ColorPalette .
|
Standard |
object |
Gets or sets the
HeaderTemplate of the standard ColorPalette .
|
Standard |
IEnumerable |
Gets or sets the
ItemsControl.ItemsSource of the standard ColorPalette .
|
Standard |
Style |
Gets or sets the
FrameworkElement.Style of the standard ColorPalette .
|
TabControlStyle | Style |
Gets or sets the
Style for the TabControl .
|
TabItemStyle | Style |
Gets or sets the
Style for the TabItem
|
Value | double |
Gets or sets the Value-Channel
Inherited from ColorPickerBase
|
Methods
Name | Value | Summary |
---|---|---|
OnApplyTemplate |
void |