This entry was posted on Tuesday, January 5th, 2010 at 15:03 and is filed under Silverlight, composants . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Free ColorPicker and ColorChooser custom controls
I put online two new components outlined below :
You can download the tweenedcontrols library here.
ColorChooser
Since its beta version, this control has been greatly improved. It is now possible to click directly on the surface of the two swatches to select a color. The property is SelectedColor this time of type Color. This greatly simplifies the code and avoids the usage of an IValueConverter class.
ColorPicker
That component is intended to make a ColorChooser appear when user click on it, with the help of an instance of Popup. The whole problem was to place the ColorChooser beside the ColorPicker in any case. To this end, I've created a method of extension for Class Popup. It is also possible to access to the style and template of ColorChooser directly through the menu Template Edit => Edit Template Aditional as shown below.
ColorPicker has the IsOpen dependency property coupled with Opened and Closed events. Apart from this trick this class exposes properties and events of a ColorChooser.
[silverlight: http://www.tweened.org/wp-content/uploads/applis/TestColorControls.xap, 540, 323,3.0.40818.0]
5 Responses to “Free ColorPicker and ColorChooser custom controls”
Leave a Reply



March 1st, 2010 at 3:03
L’adresse de chargement des contrôles ne fonctionne pas…
(http://www.tweened.org/fr/2010/01/05/wp-content/files/tweenedcontrols.dll)
March 1st, 2010 at 10:39
C’est corrigé
March 5th, 2010 at 2:44
Hello, I came across this post while searching for help with JavaScript. I’ve recently changed browsers from Google Chrome to Internet Explorer 7. Now I seem to have a issue with loading JavaScript. Every time I go on a site that needs Javascript, the page doesn’t load and I get a “runtime error javascript.JSException: Unknown name”. I cannot seem to find out how to fix it. Any aid is very appreciated! Thanks
March 9th, 2010 at 14:53
ta dernière version n’est pas bonne, j’ai une erreur javascript après avoir cliqué sur le colorpicker. Donc je suis rester sur la “beta”. A part cela, Good job!
March 9th, 2010 at 16:28
oups je regarde ça…