Mix s:Button and s:ToggleButton in s:ButtonBar
I would like some of the buttons in s:ButtonBar not to have a selected state. Imagine a menu where some buttons 开发者_开发技巧instead of opening a pop-up perform an action (they don't have to be selected while the pop-up is open).
You didn't actually ask a question, but I think I get what your after.
The buttons are created using factories defined as skin parts in the ButtonBar. In theory you could create your own custom classFactory to create a Button or ToggleButton based on some criteria.
It may be necessary to extend the ButtonBar to make it work, though.
精彩评论