Click here to Skip to main content
Rate this: bad
good
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 loaded....so 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:Rectangle.RenderTransform>
                <av:TransformGroup>
                    <av:ScaleTransform x:Name="uxProgressBar" ScaleX="0" ScaleY="1"/>
                    <av:SkewTransform AngleX="0" AngleY="0"/>
                    <av:TranslateTransform X="0" Y="0"/>
                </av:TransformGroup>
            </av:Rectangle.RenderTransform>
            <av:Rectangle.Fill>
                <av:LinearGradientBrush EndPoint="1,0" StartPoint="1,0">
                    <av:GradientStop Color="Red" Offset="1"/>
                    <av:GradientStop Color="White" Offset="0"/>
                </av:LinearGradientBrush>
                <!--<av:ImageBrush ImageSource="../Splash/Logo.png" />-->
            </av:Rectangle.Fill>
        </av:Rectangle>
 
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 + "%";
}
 
Thanks
Posted 10-Nov-12 5:25am

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

  Print Answers RSS
0 OriginalGriff 230
1 PIEBALDconsult 150
2 DamithSL 125
3 Andreas Gieriet 90
4 Jochen Arndt 90
0 OriginalGriff 5,790
1 DamithSL 4,601
2 Maciej Los 4,012
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,195


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 10 Nov 2012
Copyright © CodeProject, 1999-2014
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