Skip to content

The color picker panel, implemented as the WPF UserControl

License

Notifications You must be signed in to change notification settings

zubetto/ColorControl

Repository files navigation

ColorControl

The ColorControlPanel class represents the color picker panel and it is derived from the WPF UserControl class. The following public members and Dependency Properties (DP) of the ColorControlPanel are mainly in use:

  • SelectedColor gets a currently picked color
  • ColorChanged event occurs when the SelectedColor is changed
  • DP InitialColorBrush gets/sets the initial color to which you can return by clicking the left rectangle
  • DP SelectedColorBrush gets/sets the SelectedColor
  • DP TextBoxBackground, TextBoxBorder, TextForeground can be used for styling

Included lightweight test project represents template of usage of the ColorControlPanel.

alt text