Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Creating an Animation with a duration <1s in code?

 
 
Old 10-06-2006   #1 (permalink)
marc hoffman


 
 

Creating an Animation with a duration <1s in code?

Hi,

i'm running into a weird problem with animations: if i define a
DoubleAnimation as resource in the XAML, i can obtain a duration shorter
then 1 second, without problems - for example by specifying

Duration="0:0:0.250"

The animation will correctly run for a quarter of a second. If i try t
create the same thing in code such as

new Duration(new Timespan(0,0,0,250))

which according to the docs for the Timespan constructor looks correct,
the animation will not run at all (it does, however, if i use a timespan
of 1s or more, such as:

new Duration(new Timespan(0,0,1))

What could i be missing?


--
marc hoffman
Chief Architect
RemObjects Software
http://www.remobjects.com

and the fifty-two daughters of the revolution
turn the gold to chrome

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Duration Vista music pictures video
Problem creating an BitmapSource from an HBitmap in threaded code .NET General
duration of slides Vista General
How to know the duration of each driver? Vista performance & maintenance


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46