I'd like to create a slide-down animation for an Grid element in my WPF (.net 4.0) application. I assumed that I could do the following:
- create a visual state (closed, renderTranslate.y=-ActualHeight, solved via Binding with converter)
- create a visual state (open, renderTranslate.y=0)
- create a container to clip the animation
- use the default transition
However the binding in (1) seems to be ignored / not evaluated. Apparently VisualStates and Storyboards do not allow DataBinding (however SL4 seems to support them). Any other ideas how to achieve this slide down effect in a XAML-ish way?