Building a Silverlight Color Picker Control

It doesn't appear that there will be a color picker control in the upcoming release of Silverlight.  Of course, this is just a beta, so things may change.  Either way, I've developed a simple color picker for use in your Silverlight applications.  My ultimate goal is to make HTML hex color code color selection easier in ASP.NET applications. 

Sure, there are various color pickers available for just about every platform, but you really would appreciate how little code it took to get this working.  This is really a testament to the excellent architecture of the WPF platform.  Each of the artifacts in the screenshot below were created in XAML.

Over the next few days, I will publish a series of posts that describe in more detail the steps taken to build this control.  I still have a little clean-up and refactoring to do, but I've already made the first drop of code available.  Just follow the link below.  Enjoy!

Color Picker Control Silverlight Color Picker Control
10/08/2008
Download Source (19KB)
Live Demo (RC0 Compatible)

Feedback

# re: Building a Silverlight Color Picker Control

Gravatar Nice. Thanks for putting this together. The one feature I see missing that many would use is the ability to enter the hex rgb value. Sometimes you want to match a color and all you have is the rgb. I'll look at the source and see how hard it would be to add this. Really it would be how hard would the mapping from RGB to the slider position and the 'dot' position, if that is even possible. 4/10/2008 1:53 PM | Mike

# Introducing Silverlight Contrib

Gravatar Introducing Silverlight Contrib 8/24/2008 10:27 PM | Page Brooks

Comments have been closed on this topic.