WPF : Extend last column of ListView's GridView

前端 未结 7 751
北海茫月
北海茫月 2020-11-28 06:50

I have a ListView with a GridView with 3 columns. I want last column to take up remaining width of the ListView.

7条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-28 07:50

    There is a way to do it using behavior pattern

    
            
            
                
                    
                        
                            
                                
                            
                        
    

    See the following link for some examples and link to read more http://lazycowprojects.tumblr.com/post/7063214400/wpf-c-listview-column-width-auto

    And to see the source code. Check out https://github.com/rolfwessels/lazycowprojects/tree/master/Wpf

提交回复
热议问题