How can I toggle a TextBlock's visibility in a DataTrigger?

后端 未结 2 1777
囚心锁ツ
囚心锁ツ 2021-02-05 05:47

This code works (when ControlType=\"dropDown\" then the background yellow):



        
2条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-05 06:14

    You're setting the Visibility on the TextBlock and then trying to override it with a style. That won't work. Try this:

    
        
            
        
    
        
            
        
    
    

提交回复
热议问题