Mouse scroll not working in a scroll viewer with a wpf datagrid and additional UI elements

前端 未结 10 1437
醉话见心
醉话见心 2021-02-03 18:41

I am trying to figure out how to get the mouse scroll working on a wpf window with a scrollviewer and a datagrid within it. The WPF and C# code is below



        
10条回答
  •  深忆病人
    2021-02-03 18:46

    I found that ScrollViewer can't be concatenated, which means if it is concatenated like in your case the Grid starts under the ScrollViewer tag and in the Grid we have DataGrid and in the DataGrid again the ScrollViewer property has been set. i.e.

      
         
            
            
            
            
         
         
            
            
         
    
         
    

提交回复
热议问题