Matthias Shapiro

I need fewer hobbies

Final-ish Silverlight Color Picker Utility

Seeing as how I’ve already spent far too much time on this little project, barring major problems with this control (please point them out!) this will probably be my last version of the control. My ADD is kicking in and I need to work on something else.

If you’re interested in having the compact version of this control as a gadget, you can find it here.

Download Source for Color Picker Control

Download dll for Color Picker Control

Download Source for Color Picker Implementation (seen below)

Using the color picker in Blend

To add this to your application, just add the DLL above to your application by right clicking on the References folder in your Silverlight app.


Find the DLL and bring it into the application.

Open up the asset library (the bottom of the tool bar on the far left) and go to “Custom Controls”. You should find the ColorPicker in there.


Now you can just draw the whole thing right into your application.


Easy as pie.

You can swap between an extended view and a compact view by changing the “IsCompact” property. Compact view is basically gadget sized and expanded view can be as big as the screen if you want it to be.

Whenever you change the color, the control fires off a “ColorChanged” event. I thought that would be valuable for dynamic interactions. Hopefully you can find some fun uses for it.

This entry was posted in Blend, color, colorpicker, Silverlight and tagged , . Bookmark the permalink.

0 Responses to Final-ish Silverlight Color Picker Utility

  1. Greg

    The control is working with WPF?

  2. greattall1

    I’m having trouble databinding to the SelectedColor property as well. I’m using the control inside of a datagrid in a template column, and when I switch to the color picker i get a AG_PARSER_BAD_PROPERTY_VALUE error, even though it is being bound to a SolidColorBrush.

  3. Adam

    I’m having the same issue as GEB. Excellent component, just not sure how to wire it so I can set the color in code.

    Also, when you type a color into the text box, it doesn’t update.

    I’m going to look into all of this later, but those are my only two issues with this great component!

  4. GEB

    I have a question regarding the color picker. If I set the SelectedColor property immediately after the control is loaded (my object already has a color assigned), it updates resultCanvas.background, but it does not actually show this selected color in the color canvas. Any way to change the color picker in a way that when the selectedColor is set by the calling application, it sets the resultCanvas.Background AND the color canvas to the same selected color?

  5. Good! I like it!

  6. Pingback: 2008 December 08 - Links for today « My (almost) Daily Links

  7. Pingback: Designer WPF » Blog Archive » Silverlight Color Picker

  8. Pingback: Designer WPF » Blog Archive » Using a Color Picker Silverlight Control

  9. Pingback: Designer WPF » Blog Archive » Color Picker In Action (In The Silverlight Particle Project)