Recommended

  • Silverlight.FX
    Silverlight.FX is a light-weight application framework for building RichInternet Applications with Silverlight 2.
  • Building Modular Silverlight Applications
  • Prism -  10 Things to Know
  • Securing Silverlight Application and WCF Service using ASP.Net Authentication Techniques
  • Model– View – ViewModel in Silverlight

Silverlight Hosting

Skip Navigation LinksHome / Articles / View Article

Silverlight ColorPicker Utility

+ Add to SilverlightShow Favorites
0 comments   /   aggregated from WynApse on Aug 06, 2007  /  original article
(0 votes)
Categories: Products , Controls , Tools



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

Share


Comments

Comments RSS RSS
No comments

Add Comment

 
 

   
  
  
   
Please add 4 and 3 and type the answer here: