WPF: ListView with icons view?

前端 未结 4 523
深忆病人
深忆病人 2020-12-05 12:32

I can\'t figure out how I can implement an Icon View in the WPF ListView (a view similar to the Windows Explorer). Searching on google I only found informations about implem

4条回答
  •  情话喂你
    2020-12-05 12:48

    EDIT Appears i misunderstood what you meant with Explorer view...i have mine set to Details... ;) I'll leave my answer up here in case anyone makes the same mistake as i...


    There is no such thing as an Icon View in WPF, you'll have to implement it yourself, but you dont have to do everything from scratch.

    You can use the ListView in combination with a GridView and at least one CellTemplate for the column that contains the icon.

    The general outline would look something like this for an Windows Explorer like view:

    
        
            
                
                    
                        
                        
                    
                    
                    
                
            
                    
             
            
                
                
                                    
            
        
    
    

提交回复
热议问题