WrapPanel as ItemPanel for ItemsControl

后端 未结 3 1112
既然无缘
既然无缘 2020-11-28 09:38

Still fooling around with WPF and learning as I go. Trying now to build a dynamic grouping of controls (mostly Buttons but might include CheckBoxes and others).

I ha

3条回答
  •  日久生厌
    2020-11-28 10:16

    Here's another simple alternative to slow DataGrid / xceed datagrid and WrapPanel solution. Might be useful when a lot of data or whole table is just for editing. Using ItemsControl + Grid.IsSharedSizeScope="True"

    More info here: https://wpf.2000things.com/tag/issharedsizescope/ + On ItemsControl virutualization for performance: Virtualizing an ItemsControl?

    
        
            
            
        
    
        
            
                
                
            
            
                
            
            
                
            
        
    
        
            
                
                    
                        
                            
                            
                        
                        
                            
                        
                         
                            
                        
                    
                
            
        
    
    

提交回复
热议问题