Trigger when condition is not equal to

前端 未结 2 1714
再見小時候
再見小時候 2021-01-11 17:39

I need a Style under WPF that sets several properties when multiple conditions are fullfilled. However, one of my conditions is of type Not Equal To

2条回答
  •  爱一瞬间的悲伤
    2021-01-11 18:04

    Another option is to define default value as setter in style and then implement data trigger. In following code, the background value is always red except when value is 3

提交回复
热议问题