nah its on two separate ones but nevermind as I just found the solution (well, someone told me it!)
I used the following code in my code-behind file:
vb Code:
Dim anim As New DoubleAnimation anim.To = 3 anim.Duration = New Duration(TimeSpan.FromSeconds(1)) Dim sb As New Storyboard Storyboard.SetTargetName(anim, "myScaleTransform") Storyboard.SetTargetProperty(anim, New PropertyPath(ScaleTransform.ScaleXProperty)) sb.Children.Add(anim) sb.Begin(ImportGrid, HandoffBehavior.Compose, True)
Obviously this isn't using an animation from blend, this is creating one on the fly but I'm sure I can modify it to work with a blend generated animation.
The problem I was having was that I thought you had to define a "From" property for an animation but it turns out you dont, so by taking out my Anim.From = blah blah line I was able to get it working how I wanted.
Thanks





Reply With Quote