I have an question about Expression Blend 4.
I want to create a simple component appearing animation, when height of component changes from 0 to 100% and components below it are moving down to allocate required space.
My problem is that only static values in pixels allowed to create such type of animation. But I did not know height of my control (actually, it is textBox in which content and content length may vary), and I cannot set Height value of last keyframe to Auto.
What should I do to implement this task?
Thanks in advance.
I guess the easist way would be using the
Fluid Layout.In the below example I created a
TextBlockand set itsVisibilitytoCollpased. Then when theShowvisual state is triggered, I set itsVisibilitytoVisible. Normally you can’t animate theVisibilitybut if you enable theFluid Layoutbehavior (also remember to define aTransitionEffect), it will animate it for you automatically.Of course if you don’t want to use this magicial animation you can try animating its
ScaleY. Something like this,Hope this helps! 🙂