How to set WPF ListView row height?

前端 未结 3 1666
名媛妹妹
名媛妹妹 2021-01-03 19:04

I\'ve got a listView displaying a few text records. I need to increase the height of rows (working on a touch screen so I need thicker rows) without increasing the font size

3条回答
  •  既然无缘
    2021-01-03 19:07

    In XAML

      
            
                
                    
                        Test
                        Test
                     
                
            
        
    

    In C# Codebehind

        foreach (ListViewItem lv in myListView.Items)
        {
            lv.Height = 30;
        }
    

    Hope you getting the Idea.

提交回复
热议问题