Free ColorPicker and ColorChooser custom controls


I put online two new components outlined below :

Install Microsoft Silverlight

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]

Bookmark and Share

5 Responses to “Free ColorPicker and ColorChooser custom controls”

  1. olivier Says:

    L’adresse de chargement des contrôles ne fonctionne pas…
    (http://www.tweened.org/fr/2010/01/05/wp-content/files/tweenedcontrols.dll)

  2. Eric Ambrosi Says:

    C’est corrigé :)

  3. Rubin Ronda Says:

    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

  4. Stardust38 Says:

    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! ;-)

  5. Eric Ambrosi Says:

    oups je regarde ça…

Leave a Reply

Security Code:


 

Auteur du livre “Pratique de Silverlight” aux éditions Pearson

Categories

Archives