Click here to Skip to main content
13,048,846 members (78,464 online)
Rate this:
Please Sign up or sign in to vote.
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 + "%";

Posted 10-Nov-12 4:25am

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 10 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100