Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > BOOK: Silverlight 1.0 ISBN 978-0-470-22840-1
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: Silverlight 1.0 ISBN 978-0-470-22840-1
This is the forum to discuss the Wrox book Silverlight 1.0 by Devin Rader, Jason Beres, J. Ambrose Little, Grant Hinkson; ISBN: 9780470228401
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Silverlight 1.0 ISBN 978-0-470-22840-1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 25th, 2007, 11:21 AM
Authorized User
Join Date: Nov 2007
Location: , , .
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Listing 4-31 (XAML) is Missing

Listing 4-31 is XAML file. It's not in the download. I wish it was in the download because it's a page and a half long. I don't want to spend a lot of time typing it in but I would really like to see the storyboard animation.

Would you please place it into the download?

Reply With Quote
  #2 (permalink)  
Old November 25th, 2007, 02:38 PM
Authorized User
Join Date: Nov 2007
Location: , , .
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts

I typed the code XAML code for List 4-31. Here it is for anyone interested.

    Width="640" Height="480">

         <Storyboard x:Name="MoveRectangleResource">
        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                Storyboard.TargetProperty="(UIElement.RenderTransf orm).(TransformGroup.Children)[3].(TranslateTransform.X)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="101"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.8000000" Value="197"/>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                Storyboard.TargetProperty="(UIElement.RenderTransf orm).(TransformGroup.Children)[3].(TranslateTransform.Y)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="-40"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.8000000" Value="172"/>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                (UIElement.RenderTransform).(TransformGroup.Childr en)[2].(RotateTransform.Angle)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="64.387"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.8000000" Value="167.698"/>

    <Rectangle RenderTransformOrigin="0.5,0.5" x:Name="rectangle"
            Width="192" Height="100" Fill="#FFFF9595"
            Stroke="#FF000000" Canvas.Left="58" Canvas.Top="105">
                <ScaleTransform ScaleX="1" ScaleY="1" />
                <SkewTransform AngleX="0" AngleY="0" />
                <RotateTransform Angle="0" />
                <TranslateTransform X="0" Y="0" />

    <Rectangle x:Name="begin"
    MouseLeftButtonUp="begin_onMouseLeftButtonUp" Fill="Blue"
        Height="23" Width="75" Canvas.Top="10" Canvas.Left="10" />
    <Rectangle x:Name="pause"
    MouseLeftButtonUp="pause_onMouseLeftButtonUp" Fill="Blue"
        Height="23" Width="75" Canvas.Top="10" Canvas.Left="95" />
    <Rectangle x:Name="stop"
    MouseLeftButtonUp="stop_onMouseLeftButtonUp" Fill="Blue"
        Height="23" Width="75" Canvas.Top="10" Canvas.Left="180" />
    <Rectangle x:Name="resume"
    MouseLeftButtonUp="resume_onMouseLeftButtonUp" Fill="Blue"
        Height="23" Width="75" Canvas.Top="10" Canvas.Left="265" />

    <TextBlock Text="Begin" Height="23" Width="75"
        Canvas.Top="10" Canvas.Left="10" />
    <TextBlock Text="Pause" Height="23" Width="75"
        Canvas.Top="10" Canvas.Left="95" />
    <TextBlock Text="Stop" Height="23" Width="75"
        Canvas.Top="10" Canvas.Left="180" />
    <TextBlock Text="Resume" Height="23" Width="75"
        Canvas.Top="10" Canvas.Left="265" />


Reply With Quote
  #3 (permalink)  
Old January 11th, 2008, 01:35 AM
Registered User
Join Date: Jan 2008
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

Thanks Gary! That was very useful.

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Listing 8-10 and Listing 8-16. Asp.Net BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 1 February 6th, 2008 01:11 PM
system error 31 (MS Access) EricTheViking Access ASP 2 January 14th, 2008 04:40 PM
C# version: Pg 31-32 error Noisy Crow BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 November 10th, 2006 06:31 AM
Anyone play with XAML yet? HuhOiC C# 1 March 29th, 2004 05:30 PM

All times are GMT -4. The time now is 05:17 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.