Welcome to WindowsClient.net | My Blog | Sign in | Join

Windows Client Videos

How Do I: Create a Dynamic Storyboard in WPF

Todd Miranda shows how to dynamically create and execute a storyboard at runtime.

What's a storyboard? A storyboard is a type of container timeline that provides targeting information for the timelines it contains. A storyboard can contain any type of timeline, including other container timelines and animations. Storyboard objects enable you to combine timelines that affect a variety of objects and properties into a single timeline tree, making it easy to organize and control complex timing behaviors. Read more...

Author: Todd Miranda

Posted: Sep 17 2008, 05:41 PM by jytylr | with 3 comment(s)
Filed under:

Comments

Mike Greenway said:

Hey Todd the content is great and I am always learning a bunch from your work.

Thank You.

As aside note:

1) The microphone hum is getting pretty bad. The hum has always been there but the volume as compared to your voice is increasing and making it difficult to overlook.

2) The sound track on this video has lots of gaps.

# September 20, 2008 3:42 PM

Steve101 said:

Hi,

Great video, thanks.

I tried adding translate too, but get an error as soon as I add <TransformGroup>.

The error reads: "Cannot resolve all property references in the property path 'RenderTransform.ScaleX'. "

My xaml looks like:

           <Grid.RenderTransform>

               <TransformGroup>

               <ScaleTransform ScaleX="1" ScaleY="1"/>

               <TranslateTransform X="0" Y="0"/>

               </TransformGroup>

           </Grid.RenderTransform>

Anyone seen this, any help appreciated!!

Steve

PS. I also got the sound glitching

# August 20, 2009 7:29 AM

tmiranda said:

Steve,

  Thanks for the feedback.  You will need to access the ScaleX property one more layer deep.  So prior to the TransformGroup, the RenderTransform only had a single transform, the ScaleTransform so you could access it directly.  Adding a TransformGroup adds a collection with multple transforms so you will need to access the TransformGroup collection, then the individual transforms within the group.  Let me know if that does not make sense.

Sorry about the hum.  I didn't realize the system I was recording on was giving me problems till after I submitted a handful of videos.  Should be fixed with future videos.

Todd

# August 28, 2009 7:54 PM