WPF Trigger binding to MVVM property

前端 未结 4 879
误落风尘
误落风尘 2020-12-31 11:10

I have a datatemplate containing an image that I want to be hidden if the the value of a property in a ViewModel is true. Can anyone tell me why the the xaml below does not

4条回答
  •  生来不讨喜
    2020-12-31 11:33

    I just did something similar using a ContentControl.

    
      
        
          
          
            
              
            
          
        
      
    
    

    From http://karlhulme.wordpress.com/2007/03/06/using-a-contentcontrol-and-datatemplate-to-indicate-new-andor-modified-data/

提交回复
热议问题