[]
Control that shows a range of predefined colors from a specified palette.
[TemplatePart(Name = "StandardColors", Type = typeof(Grid))]
[TemplatePart(Name = "RecentColors", Type = typeof(Grid))]
[TemplatePart(Name = "ThemeColorsHeader", Type = typeof(Grid))]
[TemplatePart(Name = "ThemeColorsValues", Type = typeof(Grid))]
[TemplatePart(Name = "RecentColorsHeader", Type = typeof(FrameworkElement))]
[TemplatePart(Name = "TransparentColor", Type = typeof(Grid))]
[StyleTypedProperty(Property = "ColorContainerStyle", StyleTargetType = typeof(ItemsControl))]
public class C1BasicColorPickerPart : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient
Name | Description |
---|---|
C1BasicColorPickerPart() | Initializes a new instance of a C1BasicColorPickerPart. |
Name | Description |
---|---|
ColorContainerStyleProperty | Identifies the ColorContainerStyle dependency property. |
PaletteProperty | Identifies the Palette dependency property. |
SelectedColorProperty | Identifies the SelectedColor dependency property. |
ShowRecentColorsProperty | Identifies the ShowRecentColors dependency property. |
ShowTransparentColorProperty | Identifies the ShowTransparentColor dependency property. |
Name | Description |
---|---|
ColorContainerStyle | Gets or sets the style of the ItemsControl used to show a section of colors (that is recent colors). |
Palette | Gets or sets the palette used to display predefined colors. |
SelectedColor | Gets or sets the currently selected color. |
ShowRecentColors | Gets or sets a value indicating whether the recent colors should be shown. |
ShowTransparentColor | Gets or sets a value indicating whether the transparent color is shown. |
Name | Description |
---|---|
CreateColorButton(ColorPaletteEntry) | Override to change the default C1ColorButton used for a ColorPaletteEntry. |
CreateColorButton(Color) | Override to change the default C1ColorButton used for a Color. |
CreateColorContainer() | Override to change the default ItemsControl used. |
OnApplyTemplate() | Builds the visual tree for the C1BasicColorPickerPart control when a new template is applied. |
Name | Description |
---|---|
ColorPicked | Occurs when a color is chosen. |
SelectedColorChanged | Event raised when the SelectedColor property has changed. |