ListView通过不同列的数据实现某一列颜色变化

1、首先定义一个ListView,姓名添加模板,用StackPanel包装TextBox绑定的NAME,背景绑定状态STATUS,实现通过状态的不同,名字显示不同

 
               
                   

                      
                           
                               
                                   
                                       
                                   

                               

                           

                       

你可能感兴趣的:(WPF)