Banner Impression

A WPF Color Picker

ColorPicker Sample

There are diverse color pickers on the net (see e.g. the framework sample, a more elaborate sample on CodeProject, Telerik’s commercial version…) but none of them were really what we were looking for, so we set aside a few hours to cook something. The color picker we were looking for had to be flexible and templated, support both solid colors and gradients. The screenshot next shows some of the templates we assembled.

This custom WPF control is a standard example of databinding, control templating, routed events, dependency properties and XAML fun. Looking at the code of commercial controls we wonder why they make things so complicated sometimes…

9 Responses to A WPF Color Picker

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

top