Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can a spark Label be skinned?

I would like to add some fancy drawing beyond the CSS formatting. How can I put a skin on a spark Label ?

thanks

like image 798
Dan Avatar asked Aug 22 '10 15:08

Dan


1 Answers

Wow, +1 for a good question. The approach I would take would be to custom component that wraps a Label with a SkinnableComponent, which then allows you to specify a skin class since the Label component itself is not skinnable. I would then take a look at the Button and ButtonSkin classes to mimic passing the label text into the Label component in your skin. Hope that helps.

like image 121
Wade Mueller Avatar answered Oct 15 '22 01:10

Wade Mueller