开发者

WPF: How to bind the IsEnabled property of a button

With WPF how can I bind the IsEnabled property of a Button to the selected row's DataGridCheckBoxColumn value of my grid?

So every time the selected row of开发者_高级运维 my grid changes the button will be enabled/disabled depending on the value of one of it's columns.


The button would look something like this

<Button Content="Update" IsEnabled="{Binding ElementName=grid, Path=SelectedItem.SomeValue}"/>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜