Hi my dear guys, i have 2 animations (zoom in and zoom out). How can i execute code only when an animation is completed?
For example:
Code:Dim anim_SlideOut As Animation.Storyboard = Me.FindResource("SlideOut") Dim anim_SlideIn As Animation.Storyboard = Me.FindResource("SlideIn") anim_SlideOut.Begin() <--- start slide out animation (about 1200 ms duration) 'Now, how can i excecute this code when anim_SlideOut animation is completed? With imgMusicCover .Source = imgMiniCover1.Source .Visibility = Windows.Visibility.Visible End With ....more code here..... hide few controls and show others anim_SlideIn.Begin() <--- when all is finished, i want to show a slide in animation.
I'm using VB, but i can transform from C#, please help me![]()




Reply With Quote