【发布时间】:2012-03-09 22:04:41
【问题描述】:
我注意到以下代码:
<Button Content="_Timbres..."
Command="{Binding Path=ShowTimbresCommand}"
IsEnabled="{Binding Path=CanExecuteShowTimbresCommand}"/>
表现相同:
<Button Content="_Timbres..."
Command="{Binding Path=ShowTimbresCommand}">
意味着 CanExecuteShowTimbresCommand 自动绑定到 IsEnabled 属性。 这是真的吗?为什么?
【问题讨论】:
标签: c# wpf xaml data-binding command