开发者

How can a spark Label be skinned?

开发者 https://www.devze.com 2023-01-12 09:37 出处:网络
I would like to add some fancy drawing beyond the CSS f开发者_如何学编程ormatting. How can I put a skin on a spark Label ?

I would like to add some fancy drawing beyond the CSS f开发者_如何学编程ormatting. How can I put a skin on a spark Label ?

thanks


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消