PETZOLD BOOK BLOG
| Recent Entries | ||
| < Previous | Browse the Archives | Next > |
| Subscribe to the RSS Feed |
January 23, 2010
New York, N.Y.
...
Source code. (Implemented entirely in MainPage.xaml and Leg.xaml.)
| Recent Entries | ||
| < Previous | Browse the Archives | Next > |
| Subscribe to the RSS Feed |
Comments:
Add a torso and this could almost be pornography! Scandalous!
— Bolt, Mon, 25 Jan 2010 10:36:23 -0500
Thanks, now I have that song running in my head yet again. ;)
— Paintball Barrel, Mon, 1 Feb 2010 16:14:55 -0500
Thanks for the xaml - always interesting!
The following may be well known but it was a surprise to me.
I wanted to slow down the pants animation so I changed the Storyboard Duration values.
Damned if I could get it to go slower; so I was forced to read the Silverlight documentation.
I found that if the Duration was not specified in the Animation, it effectively defaults to 1 second and it doesn't matter what the Storyboard Duration specifies.
I added Duration "0:0:10" to all the Double and Point Animations and that slowed things down to a nice crawl.
It occurs to me that it would be a good idea to always add Duration to an animation even if default is OK.
— Dave, Tue, 2 Feb 2010 14:13:16 -0500
Dave, that is interesting. Is the 1 second default specified in the docs, or is the "effective" you mention just due to cpu speed or other variables?
— Paintball Barrels, Tue, 2 Feb 2010 21:53:57 -0500
"An animation uses its Duration property to determine its current value. If you do not specify a Duration value for an animation, it uses the default value of one second."
Ref: http://msdn.microsoft.com/en-us/library/cc189019%28VS.95%29.aspx#controlling_the_begin_time_of_animations
It was probably a mistake to use the word 'effective' but Duration has a value 'Automatic' and I wasn't sure how that fit in.
I am not clear on what happens if Duration is specified in both the Storyboard and the Animation but I can live with that for now.
— Dave, Wed, 3 Feb 2010 10:21:39 -0500
Submit comment:
NOTE: Comments are examined personally and generally posted within 12 hours.