mvvm模式下,Button的某个bool属性绑定了VIewModel对象的一个bool属性,该button的bool属性发生变动时,Button的内容怎么做出预设的相应改变?
mvvm模式下,Button的某个bool属性绑定了VIewModel对象的一个bool属性,该button的bool属性发生变动时,Button的内容怎么做出预设的相应改变?
例如某个button的IsEnable变成false时,button的content属性就替换成“不可点击”,当button的IsEnable=true时,Button的content属性替换成"可点击"。这个要怎么做?