When I was playing with some code while working on the gradient tutorials, I had a genius idea to allow the user to select the end color of the radial gradient by clicking a location on the linear gradient. Of course this would mean the linear gradient would have to run through all the colors.
I actually had it working to a point, but realized it was *way* too much for a tutorial on gradients, so I hung onto the code and finished what I was doing.
Later thinking about that code, the thought struck me that nobody has done a color-picker in Silverlight yet... maybe because the code would just be really simple. So I started thinking about sliders and how to pick the colors and came up with a fun presentation that you can see above.
Also included is interaction between a html text box and button and the Silverlight code, as well as a silverlight button to copy the resultant to the clipboard.
As always the image is a link to the article, and code is included!
Stay in the 'Light!
Silverlight Web Articles I've tagged and My Silverlight Articles and My Silverlight Tutorials
Animated GIF produced with
Camtasia Studio