0
我有一些单选按钮。第一个是默认选中的。单选按钮选择默认在禁用后不工作
我需要在处理某些数据时禁用它们。
问题:重新启用它们时,第一个不再被选中,即。未选择!
<RadioButton GroupName="ShowSelector" Content="For Selected"
IsChecked="{Binding Path=ShowForSelected, Mode=TwoWay, FallbackValue=True}"
IsEnabled="{Binding NotUnderProcessing}"/>
<RadioButton GroupName="ShowSelector" Content="For All"
IsEnabled="{Binding NotUnderProcessing}"/>
我测试了你的建议,没有解决问题。对不起,我的问题似乎并不明确。它不是关于未绑定/调用的NotUnderProcessing属性,它关于消失的按钮默认检查。我已经更新了问题和代码,希望现在更清楚。 – goul
@goul:你在实现INotifyPropertyChanged接口吗? –
是的。当我手动设置属性时,它在调试中工作正常 – goul