(X) Hide this Watch the recordings of our recent webinars: Switching on the Cloud for Silverlight by Gill Cleeren and WCF RIA Services Validation by Brian Noyes.
Sign up for the upcoming SilverlightShow webinars
Skip Navigation LinksHome / News / View News

Trigger a Storyboard on ViewModel changes

+ Add to SilverlightShow Favorites
0 comments   /   posted by Silverlight Show on Dec 21, 2010
(0 votes)
Tags: Trigger , Storyboard , ViewModel , Expression Blend , Mark Monster

Mark Monster has posted about triggering Storyboard on ViewModel changes using the DataTrigger in Expression Blend.

Source: Mark Monster's Blog

Interactions based on ViewModel changes are easy as soon as you understand how it works. A lot of people have been hiding and showing elements in the UI based on a boolean in the ViewModel which is converted to fit the Visibility property. Of course they used an IValueConverter that translates a bool to a Visibility enum.

But sometimes designers are tough, they don’t want to show and hide, they want to play a full animation. Of course I know about the ability to trigger a Storyboard by using EventTriggers (control Loaded or Clicked for example). But did you know about the DataTrigger?
Share


Comments

Comments RSS RSS
No comments

Add Comment

 
 

   
  
  
   
Please add 1 and 1 and type the answer here: