Setting different alignments for listview columns

前端 未结 2 1942
花落未央
花落未央 2021-02-12 11:23

I\'m having trouble drawing a listview with columns that are left or centre aligned. I\'ve looked at a few of solutions that I\'ve found on here or other forums but they either

2条回答
  •  太阳男子
    2021-02-12 12:07

    Your ListViewItems don't stretch the content by default and that's why all items appear on the left. Add this and it will work:

    
        
    
    

提交回复
热议问题