DataTrigger where value is NOT null?

后端 未结 12 648
野趣味
野趣味 2020-11-27 10:56

I know that I can make a setter that checks to see if a value is NULL and do something. Example:


  
    

        
12条回答
  •  野性不改
    2020-11-27 11:07

    You can use DataTrigger class in Microsoft.Expression.Interactions.dll that come with Expression Blend.

    Code Sample:

    
        
           
        
    

    Using this method you can trigger against GreaterThan and LessThan too. In order to use this code you should reference two dll's:

    System.Windows.Interactivity.dll

    Microsoft.Expression.Interactions.dll

提交回复
热议问题