开发者

Flex 4 Spark BorderContainer - draw border for specific sides?

开发者 https://www.devze.com 2023-01-28 22:58 出处:网络
Is there a way to easily specify on which sides a border is drawn for Flex 4\'s Spark BorderContainer?

Is there a way to easily specify on which sides a border is drawn for Flex 4's Spark BorderContainer?

I found this: http://forums.adobe.com/message/2956325

But that uses MX styling which seems like a hack. Is there a better or 'correct' way without having to build a skin? It seems incredibly silly to build a skin for a 'Bordered' component when this is a very common use case.

Thanks 开发者_如何学Gofor any pointers!


Many of the spark components are designed to be lightweight, so I'm not surprised that BorderContainer doesn't have the same bells/whistles as its mx counterpart. If I was in your situation I would create a simple skin that uses Lines instead of a border on each of the sides so you can configure the widths however you like. Sounds like a hassle, but much of the flexibility of spark components is dependent upon creating custom skins.

0

精彩评论

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