animation - wpf usercontrol states, modifying height -
i little bit confused of states , animations in wpf. i make usercontrol. usercontrol contains (inside main grid) 2 grid. 1 of them header , second 1 content. if user click on header, content expand, otherwise collapsed. , animation expanding (slide down content header). basicaly states (for future purpose). problem is, if add states , using slide efect transformation, content of grid (content grid) transformed well. use states modifying height of element. if u modify element, no animation appear , change height @ once. the hierarchy looks like: --- wrapper grid ------ header grid --------- content of header ------ content grid --------- content of content grid (like buttons, labels, etc) the visualstates looks like: <visualstatemanager.visualstategroups> <visualstategroup x:name="visualstategroup"> <visualstategroup.transitions> <visualtransition generatedduration="0:0:1"/> ...