A Customizable Silverlight Star Selector Control

I thought I would post the source code for a control that I typically demonstrate at my Silverlight presentations.  I usually show this control at the end of my presentation, so I never really get to talk about the control as much as I like. 

As you can probably infer from the image below, this control presents 4 stars/hearts/whatever and, by hovering your mouse over the control, you can change the state of the control.  Clicking on a particular star will set the rating for the selector. I think this screenshot really illustrates the awesome skinning capabilities of Silverlight.  Keep in mind, I built these control skins myself in very little time and I have no formal training in artistic design.  All of the skins are vectors and can be resized as required.  Also, since the control logic is encapsulated, creating a new skin does not require you to dive down into the code!

stars

I'd appreciate your feedback on the control.  I'm sure there are a lot of features I could add.  The source code and a live demo have been provided below.  Enjoy!

View Live Demo

Download Source Code


Feedback

# re: A Customizable Silverlight Star Selector Control

Gravatar Hi Page,

Did you create this one in SL2b1 or b2? I can't view it because I have the latest version of beta 2 installed:
installed version Silverlight 2 Beta 2 GDR 1 (2.0.30523.8)
requested version Silverlight 2 Beta 1 (2.0.30226)

Kind regards,

Rob Houweling 8/13/2008 2:32 AM | Rob Houweling

# re: A Customizable Silverlight Star Selector Control

Gravatar Rob, It was created with Beta 2. I'm running version 2.0.30523.8 and it works fine for me? 8/15/2008 12:13 AM | Rob

Comments have been closed on this topic.