binding a usercontrol to the opposite of a bool property

前端 未结 3 601
长情又很酷
长情又很酷 2021-02-19 00:39

Pretty straightforward: I\'m looking to do the same as this but in winforms. Everything that google seems to pull up is wpf specific (ie. I don\'t want to reference presentation

3条回答
  •  别那么骄傲
    2021-02-19 01:06

    To do this, I´d do a readonly property named NotSomeBool, in the same class where you have the property SomeBool, and bind to this property instead.

提交回复
热议问题