PDA

View Full Version : Opacity animation doesn't show...



Charleh
January 16th, 2009, 08:42 AM
When I try and animate an objects opacity using a storyboard/doubleanimation the interpolated frames don't show - the animation runs OK and I can fire the Completed event and catch the output

On screen the control doesn't fade - it stays at 100% opacity then flicks to 0% opacity when it hits the end of the animation

I've actually had this working, but when it was working the control was actually scaling up in size also -

Anyone got any ideas? Kirupa, you use this stuff don't you?

Can I not see the animation because the client draw area is not being invalidated correctly when there is a change in opacity?

Cheers!

Charleh
January 16th, 2009, 08:45 AM
I've just run a test - only when I update the control dimensions does the opacity interpolate correctly - what do I have to do to get this working without changing the entire control? Do I have to target the layoutroot and then set the propertytarget to the path of the child control of layoutroot to get the opacity anim to work?

Charleh
January 16th, 2009, 10:34 AM
Fixed it - found that I had set something to be slightly bigger than the parent control visible area and the animation wouldn't play. As long as the control doesn't overlap the parent area I'm OK!

kirupa
January 17th, 2009, 04:21 AM
Charleh - do you have a small example that shows that? The animation should play regardless of what size its parent control is.

Charleh
January 20th, 2009, 12:01 PM
I've fixed and done a bit more on the project since then - I'll see if I can get a test project to you so you can have a look.