I am attempting to create a multi-part timer that does the following…
- Slide canvas object down.
- Change object off-screen.
- Slide canvas object up (to original position).
This will be triggered every 5 seconds by a Dispatcher timer but i am unsure as to how to get the object to slide up/down as my attempts at using a loop for this have caused the application to lock up.
Any ideas on how this could be done would be of a huge help to me, thanks.
WPF has a nice animation class to handle stuff like this.
Here is a quick example (code behind only) I use this method in mutiple applications to quickly create an animation.
Usage:
This will animate the canvas vertically from 100 to 400 over 2 seconds.
Xaml: