using backgroundFill in BorderContainer

Simple example which shows how to use backgroundFill with BorderContainer


<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:mx="library://ns.adobe.com/flex/mx"
    xmlns:s="library://ns.adobe.com/flex/spark">

    <s:BorderContainer cornerRadius="10" width="100%" height="100%">
        <s:backgroundFill>
            <s:SolidColor
                color="0xFF00FF"  alpha="1"/>
        </s:backgroundFill>

        <s:Label text="sample text" />

    </s:BorderContainer> 

</s:Application>

Tags: ,

Hi, Stranger! Leave Your Comment...

Name (required)
Email (required)
Website