Listbox scrollbar thumb changes size when content is variable height

后端 未结 3 550
轻奢々
轻奢々 2021-01-06 01:52

I have a ListBox with many objects displayed, each of which can be a variable height, based on the number of values each object has. See my previous question that was answer

3条回答
  •  清歌不尽
    2021-01-06 02:42

    Why not switch off any size restrictions on the ListBox itself, let it size to contents and wrap it into a ScrollViewer, setting a proper size for the latter?

    The markup should look like the following:

        
            
                
                    
                        
                    
                
            
        
    

    I saw no thumb size changings during scrolling if it was implemented this way.

提交回复
热议问题