How can I provide multiple conditions for data trigger in WPF?

后端 未结 4 1777
臣服心动
臣服心动 2020-12-02 05:04

How can I provide multiple conditions for data trigger in WPF?

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-02 06:00

    @jasonk - if you want to have "or" then negate all conditions since (A and B) <=> ~(~A or ~B)

    but if you have values other than boolean try using type converters:

    
        
            
                
                    
                    
                
            
            
        
    
    

    you can use the values in Convert method any way you like to produce a condition which suits you.

提交回复
热议问题