c# - Pausing an Application Procedure -
i have following code:
mediaplayer.movenext(); slidetransition slidetransition = new slidetransition { mode = slidetransitionmode.sliderightfadeout }; itransition transition = slidetransition.gettransition(textblocksong); transition.completed += delegate { transition.stop(); }; transition.begin(); //would pause here. slidetransition slidetransition2 = new slidetransition { mode = slidetransitionmode.sliderightfadein }; itransition transition2 = slidetransition2.gettransition(textblocksong); transition2.completed += delegate { transition2.stop(); }; transition2.begin();
however first transition doesn't chance run second part kicks in immediately. how can add pause/delay inbetween 2 transitions, doesn't halt app (like thread.sleep()
) waits until proceeding code called?
i'm not familiar yet, can try put transition storyboards. storyboard have completed event.
edit:
what this?
slidetransition slidetransition = new slidetransition { mode = slidetransitionmode.sliderightfadeout }; itransition transition = slidetransition.gettransition(textblocksong); transition.completed += delegate { transition.stop(); slidetransition slidetransition2 = new slidetransition { mode = slidetransitionmode.sliderightfadein }; itransition transition2 = slidetransition2.gettransition(textblocksong); transition2.completed += delegate { transition2.stop(); }; transition2.begin(); }; transition.begin();
Comments
Post a Comment