Executing an animation from within code?
-
I've been looking through animation tutorials for WPF and they all seem to use the "RoutedEvent" inside an event trigger that is hooked up to the form loading or a button being pressed.... But how would I, say, launch an animation when my SQL query has finished or when a file has finished loading, etc, etc. Is there just some simple "Do this animation now" command I can call on a story board?? Thanks.
-
I've been looking through animation tutorials for WPF and they all seem to use the "RoutedEvent" inside an event trigger that is hooked up to the form loading or a button being pressed.... But how would I, say, launch an animation when my SQL query has finished or when a file has finished loading, etc, etc. Is there just some simple "Do this animation now" command I can call on a story board?? Thanks.
Plenty of great examples on the web. I Googled: wpf execute animation in code Got lots of good examples. http://blogs.msdn.com/karstenj/archive/2007/06/20/collaborating-on-creating-animations-in-wpf-and-blend-possibilities-and-limitations.aspx[^] http://www.galasoft.ch/mydotnet/articles/article-2006102701.aspx[^]
Cheers, Karl
» CodeProject 2008 MVP » Microsoft MVP - Client App Dev My Blog | Mole's Home Page | MVP ProfileJust a grain of sand on the worlds beaches.