I want to create a custom color picker like in Visual Studio or Blend or here (http://www.codeproject.com/Articles/779105/Color-Canvas-and-Color-Picker-WPF-Toolkit). And I have a problem. I don't know how create color canvas like at the link above. (may be it's not canvas. it's something else) I looks like a canvas with very unusual gradient... and I have no idea how to make it in xaml. I tried to draw it in Visual Studio, but no luck.... Any help will be appreciated.
Thanks in advance
The hue bar can be created with a regular
LinearGradientBrush
. The Level/Saturation panel can be done with aLinearGradientBrush
of the appropriate color along the X axis and another as an opacity mask along the Y, with the whole thing drawn against a black background.Result: