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

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

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



        
2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-05 05:59

    I have the same problem. @Bryan's answer is perfect! There are the wrong and right versions. The wrong version:

    
                                    
                                        
                                    
                                
    

    The right version:

    
                                    
                                        
                                    
                                
    

提交回复
热议问题