Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

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

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 10-06-2006   #1 (permalink)
marc hoffman
Guest


 

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
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Duration of a timer Greg Smith .NET General 1 09-01-2008 10:52 PM
Problem creating an BitmapSource from an HBitmap in threaded code Shaun Bedingfield .NET General 0 03-05-2008 07:32 AM
duration of slides Briana Vista General 3 08-20-2007 08:02 PM
How to know the duration of each driver? Standby resume Vista performance & maintenance 0 10-18-2006 12:16 AM
Animation not working in code viliescu Avalon 3 01-10-2006 03:53 PM


Vistax64.com 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 2005-2008

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 47 48 49 50 51