Click here to Skip to main content
15,905,563 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to start animation in the grid.the grid is inside the canvas tag.both the story board definition and the grid to animate is inside the windows.resources tag.
the code is given below


        <VisualBrush  x:Key="Passport" x:Shared="false" Stretch="Uniform">

                <Canvas RenderTransformOrigin="0.5,0.5"  >
                  <Grid Margin="5.397,45.106,5.239,0"  VerticalAlignment="Top" Height="7.801"   x:Name="side_scan_strip" RenderTransformOrigin="0.5,0.5">
                            <Grid.RenderTransform >

                                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                                    <SkewTransform AngleX="0" AngleY="0"/>
                                    <RotateTransform Angle="0"/>
                                    <TranslateTransform X="0" Y="0"/>


            <Storyboard x:Key="Storyboard1" x:Name="Storyboard1">
            <DoubleAnimationUsingKeyFrames x:Name="dak1" BeginTime="00:00:00" Storyboard.TargetName=" side_scan_strip" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
                <SplineDoubleKeyFrame KeyTime="00:00:01" Value="109.75"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02" Value="0"/>
                <SplineDoubleKeyFrame KeyTime="00:00:03" Value="109.75"/>
                <SplineDoubleKeyFrame KeyTime="00:00:04" Value="0"/>

the exception i got is :
' side_scan_strip' name cannot be found in the name scope of 'WpfApplication1.MainWindow'.
Updated 30-Mar-15 21:32pm

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