views:

473

answers:

2

Hi, I was just wondering if it's possible to animate the height of a grid using purely XAML? I looked at this tutorial: http://windowsclient.net/learn/video.aspx?v=70654

But it seems as though one need to write custom functions for this to work. Can it be done just by XAML purely?

A: 

its not possible out of the box because there's no such class as a GridLengthAnimation (compare with DoubleAnimation). If such a class existed (from you, microsoft or third party) then there would be a pure XAML solution.

Rob Fonseca-Ensor
But I've seen animations done which target the Grid itself to manipulate it's properties. But what I want is probably to target the specific row and alter it's properties? So I can manipulate a Grid, but not it's columns and rows?
Kenny Bones
Rob Fonseca-Ensor
+1  A: 

There's a good article at CodeProject, explaining the whole approach.

kek444
Well, It's about GridLengthAnimation. Is there any example of GridLengthAnimationUsingKeyframes? I couldn't find any :(
Ike