Latest News

  • Silverlight Online Chat
    Jul 24, 2010

    Today we launch the new Silverlight Live Chat application demonstrating the Liquid RichTextBox and Emoticon replacements.

  • New Super Shoot Em Up 2 Game
    Jun 29, 2010

    Added to the Games section is the new Super Shoot 'Em Up 2 game. Take control of your tank with the aim to defeat the computer controlled opponents. Features all new weapons, levels and Battle Mode!

  • Silverlight 4 Controls V5.3.2 Released
    Jun 28, 2010

    This release contains several fixes raised in the forums.

  • New Sandmania Puzzle Game
    Jun 18, 2010

    Sandmania is the latest game from vectorlight, the aim of this game is to guide sand from the top of the screen to the various colored containers below.

  • New Moon Tower Defense Game
    May 29, 2010

    Added to the Games section is the new Moon Tower Defense game. Defend the Moon from the circling Aliens and Humans.

pedricd
pedricd
Color Selector Dynamic Population and Default Select Posted: Oct 21, 2009
 

I am using the color selector and am having issues with dynamically populating the selector and subsequently selecting a "default" color.


Here is a code example:

"

//dynamically populates the color selector

_GenerateColorSelectorContent(cs);


//this makes no difference

//cs.UpdateLayout();


//attempts to select a color

cs.Select(some_default_color);

"


With 5.2.3 - works ok for all colors *except* transparent (changes to "white" when transparent is passed to select)


With 5.2.4 - Does not work at all, selection becomes transparent no matter what is passed to select

 
 
dan
dan
RE: Color Selector Dynamic Population and Default Select Posted: Oct 22, 2009
 

Hi,


Yes this is a bug in 5.2.4 and will be addressed in an interim fix which will be released soon.


Thanks!

 
 
doctor30306
doctor30306
RE: Color Selector Dynamic Population and Default Select Posted: Feb 18, 2010
 

How are you creating the "Transparent Color"?  I have included the code I am using, but it defaults to WHITE" in the pallette..  Is there a way to differentiate "Transparent from White in the Color Selector pallette?


System.Windows.Media.Color.FromArgb(0, 0, 0, 0)


Thanks in advance!

Ron

 
 
doctor30306
doctor30306
RE: Color Selector Dynamic Population and Default Select Posted: Feb 18, 2010
 

Dan,

I am working with your Color Selector control and Custom Colors which is a very nice implementation!


However, I have a challenge which I am unsure how to handle:


How do I detect whether a particular color already exists in the Pallette?  For instance: #FF5E60B8 which was selected from the CustomColors functionality...  I don't want to add the color to the CustomColors if it already exists in the standard pallette...  I want to just select that color using the "SELECTED" property...


Thanks in advance!

Ron


 
 

Rate this page: 

1 Star 2 Star 3 Star 4 Star 5 Star
8 Ratings / 2.5 Average