Border properties set in MXML mark-up : Spark component « Components « Flex
- Flex
- Components
- Spark component
Border properties set in MXML mark-up

<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:s="library://ns.adobe.com/flex/spark">
<!-- -->
<s:BorderContainer width="200" height="200"
cornerRadius="10" borderStyle="inset">
<s:layout>
<s:VerticalLayout
paddingLeft="5" paddingTop="5" paddingBottom="5" paddingRight="5"
horizontalAlign="justify" />
</s:layout>
<mx:Label text="Lorem ipsum dolor sit amet consectetur adipisicing elit." />
<mx:Button label="click me" />
<s:borderStroke>
<s:SolidColorStroke color="#0000" weight="2" />
</s:borderStroke>
</s:BorderContainer>
</mx:Application>
Related examples in the same category