(X) Hide this
    • Login
    • Join
      • Say No Bots Generate New Image
        By clicking 'Register' you accept the terms of use .
        Login with Facebook

Building A StoryboardEventHelper Class To Create Additional Events For A Silverlight 4 Storyboard

(0 votes)
0 comments   /   posted by Martin Krüger on Jul 28, 2010
Tags:   silverlight-4 , storyboard , storyboardeventhelper , silverlaw
I wrote an article on my Blog in which I describe a technique as a workaround on how to "add" additional events to a Silverlight 4 Storyboard. The Silverlight 4 Storyboard class only has one single event, which is the Completed event. There a numerous needs to add additional events to a storyboard but because the Storyboard class is sealed this isn't possible. So we need a workaround which is provided by the StoryboardEventHelper class. The StoryboardEventHeler class that is build step by step in the article implements two addititional events (OnStoryboardStarted and OnStoryboardPositionChanged) that provide for example the opportunity to easily change the VisualState of any Object at a certain timeline position of a running storyboard. In addition to the article you can view a small sample app and download the full sourcecode at the Expression Gallery.

Have fun!


Comments

No comments

Add Comment

Login to comment:
  *      *       
Login with Facebook

Our News on Twitter