• Silverlight.FX
    Silverlight.FX is a light-weight application framework for building RichInternet Applications with Silverlight 2.
  • Building Modular Silverlight Applications
  • .NET RIAServices - Building Data-Driven Applications with Microsoft Silverlight andMicrosoft ASP.NET
  • Securing Silverlight Application and WCF Service using ASP.Net Authentication Techniques
  • Model– View – ViewModel in Silverlight

Skip Navigation LinksHome / News / View News

Reference the Animated Element in the Animation's Completed Event

+ Add to SilverlightShow Favorites
0 comments   /   posted by Silverlight Show on May 30, 2009
(0 votes)

Bob Bartholomay wanted to get a reference to a FrameworkElement that was created dynamically and animated but realized that he can't get such a reference. The solution of the problem is called Attached Properties.

I had a need to create FrameworkElement(s) dynamically, animate them, and then get rid of them. I was surprised to find that while you have the (say) DoubleAnimation as one of the parameters in the Animation’s Completed handler, there’s no way to find out what FrameworkElement that Animation just animated - I want to remove that element from the visual tree.



Comments RSS RSS
No comments

Add Comment