Child elements of scrollviewer preventing scrolling with mouse wheel?

前端 未结 4 1984

I\'m having a problem getting mouse wheel scrolling to work in the following XAML, which I have simplified for clarity:



        
4条回答
  •  猫巷女王i
    2020-12-02 18:58

    I know it's a little late but I have another solution that worked for me. I switched out my stackpanel/listbox for an itemscontrol/grid. Not sure why the scroll events work properly but they do in my case.

    
                    
                        
                            
                                
    

    became

    
        
            
                
                
            
            
                
                    
    

提交回复
热议问题