Recommended

  • Silverlight.FX
    Silverlight.FX is a light-weight application framework for building RichInternet Applications with Silverlight 2.
  • Silverlight3 Out-of-Browser Apps vs. Live Framework Mesh-Enabled Web Applications
  • .NET RIAServices - Building Data-Driven Applications with Microsoft Silverlight andMicrosoft ASP.NET
  • Mesh-Enabled Web Applications
  • Model– View – ViewModel in Silverlight
Skip Navigation LinksHome / News / View News

Animate LayoutTransformer with AnimationMediator

+ Add to SilverlightShow Favorites
0 comments   /   posted by Silverlight Show on Apr 10, 2009
(0 votes)
David Anson shows you how to easily animate LayoutTransformer with AnimationMediator.

I wanted something that was simple and easy to use - and managed to come up with a pretty reasonable XAML-only solution on my second try. [The first attempt would have been a bit simpler, but didn't work out. :( ] The basic idea is to insert a Mediator between the animation and the LayoutTransformer and let the Mediator make sure the LayoutTransformer is updated when necessary. This task is complicated slightly by the fact that Silverlight won't let you create a Binding on one of its Transforms - but the equivalent effect can be had by putting a TwoWay Binding on the Mediator instead (as discussed in more detail by Jeff Prosise here).

Share


Comments

Comments RSS RSS
No comments

Add Comment

 
 

   
  
  
   
 Refresh