c# - Partially vertically scroll -


i have listbox contains 2 columns - column 1 contains toggle button, column 2 contains expander multiple controls within it. if expander collapsed, overall scrolling of listbox works fine. however, if expander open , expander contains large quantity of items, listbox scroll entire row size, not showing part of expander list.

this similar placing image in list box larger viewable area of list box. in case, if click scrollbar, want "step" down image, without scrolling off screen in 1 click.

is there setting listbox allow partial scrolling i've described? listbox defined in xaml, controls added via c# code.

have tried turning on smooth scrolling setting scrollviewer.cancontentscroll false? controls whether scrollviewer scroll item @ time, or smoothly partial items available.

"scrollviewer allows 2 scrolling modes: smooth pixel-by-pixel scrolling (cancontentscroll = false) or discrete item-by-item scrolling (cancontentscroll = true). wpf supports ui virtualization when scrolling item. pixel-based scrolling called 'physical scrolling' , item-based scrolling called 'logical scrolling'." (from this answer).

if have lot of items in listbox, may not ideal solution, however, because turns off virtualization, , therefore may have performance impact. take @ this answer see more smooth scrolling , virtualization. (one answer suggests hack allows smooth scrolling , virtualization).


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -