Hi,
I have an accordion with 3 Canvas childs:
<mx:Accordion id="restricts">
<mx:Canvas label="Observables">
</mx:Canvas>
<mx:Canvas label="States">
</mx:Canvas>
<mx:Canvas label="Risk Type" visible="{model.isrisk}"
includeInLayout="{model.isrisk}">
</mx:Canvas>
</mx:Accordion>
My objective is to show the 3rd child if model.isrisk = true and hide it
when it is false.
However, even if I explicitly set the visible and includeInLayout to
false, the 3rd canvas in the accordion just won't go.
Must I use AddChild and RemoveChild ? I was trying to stay away from
that as then my Cairngorm Command would have to invoke a method in the
View to call these fuctions.
I was hoping to make the child conditionally appear/disappear using
databinding.
Many Thanks,
Aman
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - -
This message is intended only for the personal and confidential use of the
designated recipient(s) named above. If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited. This
communication is for information purposes only and should not be regarded as an
offer to sell or as a solicitation of an offer to buy any financial product, an
official confirmation of any transaction, or as an official statement of Lehman
Brothers. Email transmission cannot be guaranteed to be secure or error-free.
Therefore, we do not represent that this information is complete or accurate
and it should not be relied upon as such. All information is subject to change
without notice.