Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have created splash screen in silverlight and in that screen I will be showing my logo by placing that behind the rectangle and to reduce the width by percentage that i will show my logo..I am stuck with reduce the width of rectangle....Please help me

my xaml:

<av:Rectangle Width="1" x:Name="uxProgress" av:Grid.Row="0" HorizontalAlignment="Center" >
                    <av:ScaleTransform x:Name="uxProgressBar" ScaleX="0" ScaleY="1"/>
                    <av:SkewTransform AngleX="0" AngleY="0"/>
                    <av:TranslateTransform X="0" Y="0"/>
                <av:LinearGradientBrush EndPoint="1,0" StartPoint="1,0">
                    <av:GradientStop Color="Red" Offset="1"/>
                    <av:GradientStop Color="White" Offset="0"/>
                <!--<av:ImageBrush ImageSource="../Splash/Logo.png" />-->

My Js file code on loading

function onSourceDownloadProgressChanged(sender, eventArgs) {
    /*sender.findName("uxStatus").Text = "Loading: " + Math.round((eventArgs.progress * 1000)) / 10 + "%";*/
    sender.findName("uxProgressBar").ScaleX = eventArgs.progress *220;
    sender.findName("StatusText").Text = Math.round((eventArgs.progress * 1000)) / 10 + "%";


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900