ExtendedOfficeColorPicker
A custom control that provides a color picker functionality like that seen in MS Office applications.
public class ExtendedOfficeColorPicker : Control
Inherits from / implements: Control
Remarks
The control has two main parts viz., a combobox like control that displays the selected color, with a small rectangle filled with the selected color and a textual representation of the color itself, and a drop-down click button part that when clicked drops down a color palette window, from where the user can choose colors.
The main property of interest in this control is the SelectedColorBrush, and the event SelectedColorChanged.
Members at a glance
AnimationType | Gets or sets the type of animation to use. |
ColorBoxMouseOverBorderBrush | Gets or sets the brush to use when drawing the border around the "color box" in the drop-down color palette window. |
ColorsWindowPopupBorderBrush | Gets or sets the colors window popup border brush. |
ColorsWindowPopupBorderThickness | Gets or sets the colors window popup border thickness. |
ColorsWindowPopupContentBorderBrush | Gets or sets the colors window popup content border brush. |
ColorsWindowPopupContentBorderThickness | Gets or sets the colors window popup content border thickness. |
CustomColorsPopupInternalViewBackground | Gets or sets the custom colors pop-up internal view background brush. |
CustomColorsPopupWindowBorderBrush | The brush used for the border of the custom-colors popup window. |
CustomColorsPopupWindowBorderThickness | Gets or sets the border thickness for drawing the border around the custom colors pop-up window. |
CustomColorsPopupWindowCustomColorSetCommandVisualText | Gets or sets the custom colors popup window custom color set command visual text. |
CustomColorsPopupWindowLabelTextAlternativeInstruction | Gets or sets the custom colors popup window label text alternative instruction. |
CustomColorsPopupWindowLabelTextSelectColorInstruction | Gets or sets the custom colors popup window label text select color instruction. |
CustomColorsPopupWindowRgbPanelBorderBrush | Gets or sets the custom colors popup window RGB panel border brush. |
DropDownArrowFill | Gets or sets the drop down arrow fill color brush. |
DropDownButtonBackground | Gets or sets the drop down button background. |
DropDownButtonOnHoverBackground | Gets or sets the drop down button on-hover background. |
IsColorPaletteWindowCurvedEdged | Gets or sets a value indicating whether the color palette window has curved edges. |
IsControlWindowCurvedEdged | Gets or sets a value indicating whether control's window has curved edges. |
IsEnabledBorderAroundSelectedColorIndicatorFill | Gets or sets a value indicating whether to enable border around selected color indicator fill. |
IsHostBorderDrawingEnabledForCustomColorsWindow | Gets or sets whether to draw the thick border around the custom colors popup window. |
MoreColorsLabelText | Gets or sets the "More colors" label text. |
PopupWindowBackground | Gets or sets the popup window background brush. |
SelectedColorBrush | Gets or sets the selected color brush. |
SelectedColorIndicatorFillBorderBrush | Gets or sets the selected color indicator fill border brush. |
SelectedColorIndicatorIndicatorBorderThickness | Gets or sets the selected color indicator indicator border thickness. |
SelectedColorName | Gets or sets the name of the selected color. |
SelectedColorTextForeground | Gets or sets the selected color text brush. |
ShouldDisplayAlphaValue | Gets or sets a value indicating whether to display alpha value in the control. |
StandardColorsLabelText | Gets or sets the "standard colors" label text. |
ThemeColorsLabelText | Gets or sets the "theme colors" label text. |
OnApplyTemplate | When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate. |
SelectedColorChanged | Occurs when the selected color changes. |
AnimationTypeProperty | Identifies the AnimationType dependency property. |
ColorBoxMouseOverBorderBrushProperty | Identifies the ColorBoxMouseOverBorderBrush dependency property. |
ColorsWindowPopupBorderBrushProperty | The colors window popup border brush property |
ColorsWindowPopupBorderThicknessProperty | The colors window popup border thickness property |
ColorsWindowPopupContentBorderBrushProperty | The colors window popup content border brush property |
ColorsWindowPopupContentBorderThicknessProperty | The colors window popup content border thickness property |
CustomColorsPopupInternalViewBackgroundProperty | The custom colors pop-up internal view background brush property |
CustomColorsPopupWindowBorderBrushProperty | Identifies the CustomColorsPopupWindowBorderBrush dependency property. |
CustomColorsPopupWindowBorderThicknessProperty | Identifies the CustomColorsPopupWindowBorderThickness dependency property. |
CustomColorsPopupWindowCustomColorSetCommandVisualTextProperty | The custom colors popup window custom color set command visual text property |
CustomColorsPopupWindowLabelTextAlternativeInstructionProperty | The custom colors popup window label text alternative instruction property |
CustomColorsPopupWindowLabelTextSelectColorInstructionProperty | The custom colors popup window label text select color instruction property |
CustomColorsPopupWindowRgbPanelBorderBrushProperty | Identifies the CustomColorsPopupWindowRgbPanelBorderBrush dependency property. |
DropDownArrowFillProperty | Identifies the DropDownArrowFill dependency property. |
DropDownButtonBackgroundProperty | The drop down button background property |
DropDownButtonOnHoverBackgroundProperty | The drop down button on-hover background property |
IsColorPaletteWindowCurvedEdgedProperty | Identifies the IsColorPaletteWindowCurvedEdged dependency property. |
IsControlWindowCurvedEdgedProperty | Identifies the IsControlWindowCurvedEdged dependency property. |
IsEnabledBorderAroundSelectedColorIndicatorFillProperty | Identifies the IsEnabledBorderAroundSelectedColorIndicatorFill dependency property. |
IsHostBorderDrawingEnabledForCustomColorsWindowProperty | Identifies the IsHostBorderDrawingEnabledForCustomColorsWindow dependency property. |
MoreColorsLabelTextProperty | Identifies the MoreColorsLabelText dependency property. |
PopupWindowBackgroundProperty | Identifies the PopupWindowBackground dependency property. |
SelectedColorBrushProperty | Identifies the SelectedColorBrush dependency property. |
SelectedColorChangedEvent | The selected color changed event |
SelectedColorIndicatorFillBorderBrushProperty | Identifies the SelectedColorIndicatorFillBorderBrush dependency property. |
SelectedColorIndicatorIndicatorBorderThicknessProperty | The selected color indicator indicator border thickness property |
SelectedColorTextForegroundProperty | Identifies the SelectedColorTextForeground dependency property. |
ShouldDisplayAlphaValueProperty | Identifies the ShouldDisplayAlphaValue dependency property. |
StandardColorsLabelTextProperty | Identifies the StandardColorsLabelText dependency property. |
ThemeColorsLabelTextProperty | Identifies the ThemeColorsLabelText dependency property. |
Properties
AnimationType
Gets or sets the type of animation to use.
Value. The animation styles from the PopupAnimation enumeration.
ColorBoxMouseOverBorderBrush
Gets or sets the brush to use when drawing the border around the "color box" in the drop-down color palette window.
Value. The color box mouse over border brush.
ColorsWindowPopupBorderBrush
Gets or sets the colors window popup border brush.
Value. The colors window popup border brush.
ColorsWindowPopupBorderThickness
Gets or sets the colors window popup border thickness.
Value. The colors window popup border thickness.
ColorsWindowPopupContentBorderBrush
Gets or sets the colors window popup content border brush.
Value. The colors window popup content border brush.
ColorsWindowPopupContentBorderThickness
Gets or sets the colors window popup content border thickness.
Value. The colors window popup content border thickness.
CustomColorsPopupInternalViewBackground
Gets or sets the custom colors pop-up internal view background brush.
Value. The custom colors pop-up internal view background brush.
CustomColorsPopupWindowBorderBrush
The brush used for the border of the custom-colors popup window.
CustomColorsPopupWindowBorderThickness
Gets or sets the border thickness for drawing the border around the custom colors pop-up window.
CustomColorsPopupWindowCustomColorSetCommandVisualText
Gets or sets the custom colors popup window custom color set command visual text.
Value. The custom colors popup window custom color set command visual text.
CustomColorsPopupWindowLabelTextAlternativeInstruction
Gets or sets the custom colors popup window label text alternative instruction.
Value. The custom colors popup window label text alternative instruction.
CustomColorsPopupWindowLabelTextSelectColorInstruction
Gets or sets the custom colors popup window label text select color instruction.
Value. The custom colors popup window label text select color instruction.
CustomColorsPopupWindowRgbPanelBorderBrush
Gets or sets the custom colors popup window RGB panel border brush.
Value. The custom colors popup window RGB panel border brush.
DropDownArrowFill
Gets or sets the drop down arrow fill color brush.
Value. The drop down arrow fill color brush.
DropDownButtonBackground
Gets or sets the drop down button background.
Value. The drop down button background.
DropDownButtonOnHoverBackground
Gets or sets the drop down button on-hover background.
Value. The drop down button on hover background.
IsColorPaletteWindowCurvedEdged
Gets or sets a value indicating whether the color palette window has curved edges.
IsControlWindowCurvedEdged
Gets or sets a value indicating whether control's window has curved edges.
IsEnabledBorderAroundSelectedColorIndicatorFill
Gets or sets a value indicating whether to enable border around selected color indicator fill.
IsHostBorderDrawingEnabledForCustomColorsWindow
Gets or sets whether to draw the thick border around the custom colors popup window.
MoreColorsLabelText
Gets or sets the "More colors" label text.
Value. The more colors label text.
PopupWindowBackground
Gets or sets the popup window background brush.
Value. The popup window background brush.
SelectedColorBrush
Gets or sets the selected color brush.
Value. The selected color brush.
SelectedColorIndicatorFillBorderBrush
Gets or sets the selected color indicator fill border brush.
Value. The selected color indicator fill border brush.
SelectedColorIndicatorIndicatorBorderThickness
Gets or sets the selected color indicator indicator border thickness.
Value. The selected color indicator indicator border thickness.
SelectedColorName
Gets or sets the name of the selected color.
Value. The name of the selected color.
SelectedColorTextForeground
Gets or sets the selected color text brush.
Value. The selected color text brush.
ShouldDisplayAlphaValue
Gets or sets a value indicating whether to display alpha value in the control.
StandardColorsLabelText
Gets or sets the "standard colors" label text.
Value. The standard colors label text.
ThemeColorsLabelText
Gets or sets the "theme colors" label text.
Value. The theme colors label text.
Methods
OnApplyTemplate
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate.
Events
SelectedColorChanged
Occurs when the selected color changes.
Fields
AnimationTypeProperty
Identifies the AnimationType dependency property.
ColorBoxMouseOverBorderBrushProperty
Identifies the ColorBoxMouseOverBorderBrush dependency property.
ColorsWindowPopupBorderBrushProperty
The colors window popup border brush property
ColorsWindowPopupBorderThicknessProperty
The colors window popup border thickness property
ColorsWindowPopupContentBorderBrushProperty
The colors window popup content border brush property
ColorsWindowPopupContentBorderThicknessProperty
The colors window popup content border thickness property
CustomColorsPopupInternalViewBackgroundProperty
The custom colors pop-up internal view background brush property
CustomColorsPopupWindowBorderBrushProperty
Identifies the CustomColorsPopupWindowBorderBrush dependency property.
CustomColorsPopupWindowBorderThicknessProperty
Identifies the CustomColorsPopupWindowBorderThickness dependency property.
CustomColorsPopupWindowCustomColorSetCommandVisualTextProperty
The custom colors popup window custom color set command visual text property
CustomColorsPopupWindowLabelTextAlternativeInstructionProperty
The custom colors popup window label text alternative instruction property
CustomColorsPopupWindowLabelTextSelectColorInstructionProperty
The custom colors popup window label text select color instruction property
CustomColorsPopupWindowRgbPanelBorderBrushProperty
Identifies the CustomColorsPopupWindowRgbPanelBorderBrush dependency property.
DropDownArrowFillProperty
Identifies the DropDownArrowFill dependency property.
DropDownButtonBackgroundProperty
The drop down button background property
DropDownButtonOnHoverBackgroundProperty
The drop down button on-hover background property
IsColorPaletteWindowCurvedEdgedProperty
Identifies the IsColorPaletteWindowCurvedEdged dependency property.
IsControlWindowCurvedEdgedProperty
Identifies the IsControlWindowCurvedEdged dependency property.
IsEnabledBorderAroundSelectedColorIndicatorFillProperty
Identifies the IsEnabledBorderAroundSelectedColorIndicatorFill dependency property.
IsHostBorderDrawingEnabledForCustomColorsWindowProperty
Identifies the IsHostBorderDrawingEnabledForCustomColorsWindow dependency property.
MoreColorsLabelTextProperty
Identifies the MoreColorsLabelText dependency property.
PopupWindowBackgroundProperty
Identifies the PopupWindowBackground dependency property.
SelectedColorBrushProperty
Identifies the SelectedColorBrush dependency property.
SelectedColorChangedEvent
The selected color changed event
SelectedColorIndicatorFillBorderBrushProperty
Identifies the SelectedColorIndicatorFillBorderBrush dependency property.
SelectedColorIndicatorIndicatorBorderThicknessProperty
The selected color indicator indicator border thickness property
SelectedColorTextForegroundProperty
Identifies the SelectedColorTextForeground dependency property.
ShouldDisplayAlphaValueProperty
Identifies the ShouldDisplayAlphaValue dependency property.
StandardColorsLabelTextProperty
Identifies the StandardColorsLabelText dependency property.
ThemeColorsLabelTextProperty
Identifies the ThemeColorsLabelText dependency property.