animation - WPF ListBox does not realise that its items have changed size -


i have listbox contains number of user items datatemplated appear usercontrols in listbox. each usercontrol can expanded in size. start with, listbox big enough display them in unexpanded state. problem have when number of these usercontrols expanded together, extend out of listbox's visible area. listbox not recognise fact , no scrollbars appear, when set visible.

i using doubleanimations alter usercontrol heights when user clicks on button in each one. there have do, or setting on listbox must set register size changes of usercontrols represent items , display scrollbars when needed?

edit>>>

i have tracked down problem custom wrappanel using in listbox.itemspanel. when remove it, or replace standard wrappanel, scrollbars appear when required. got code panel article creating custom wpf panels. can see what's missing code given in article , why might stop scrollbars displaying?

i wonder whether listboxes expecting? might try calling invalidatemeasure/layout on listbox if know when item sizes change, see?


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -