How to hide the empty TextBlock?

前端 未结 3 818
迷失自我
迷失自我 2020-12-08 00:10

In the XAML provided below, I don\'t have the value for Phone sometimes. When that happens, the value is missing, but the TextBlock is still occupying the space

3条回答
  •  伪装坚强ぢ
    2020-12-08 00:56

    You can use a DataTrigger:

    
        
           
        
    
    

提交回复
热议问题