animation - WPF ListBox does not realise that its items have changed size -
i have listbox
contains number of user
items datatemplate
d appear usercontrol
s in listbox
. each usercontrol
can expanded in size. start with, listbox
big enough display them in unexpanded state. problem have when number of these usercontrol
s expanded together, extend out of listbox
's visible area. listbox
not recognise fact , no scrollbar
s appear, when set visible
.
i using doubleanimation
s alter usercontrol
heights when user clicks on button in each one. there have do, or setting on listbox
must set register size changes of usercontrol
s represent items , display scrollbar
s when needed?
edit>>>
i have tracked down problem custom wrappanel
using in listbox.itemspanel
. when remove it, or replace standard wrappanel
, scrollbar
s appear when required. got code panel
article creating custom wpf panels. can see what's missing code given in article , why might stop scrollbar
s displaying?
i wonder whether listboxes expecting? might try calling invalidatemeasure/layout on listbox if know when item sizes change, see?
Comments
Post a Comment