c# - Animate height of groupbox from 0 to auto -
i have groupboxes acting expanders in application. when need colapse groupbox set height equal 0. when need expand set it's height equal auto (double.nan) posible storyboard. how know auto height in advance. expression blend not enable me animate auto.
you can use scaletransform this
<groupbox header="groupbox"> <groupbox.rendertransform> <scaletransform scaley="1"/> </groupbox.rendertransform> </groupbox>
when collapse groupbox set scaletransform.scalex 0. , when expand set 1.
Comments
Post a Comment