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}"/>
제휴하지 않습니다 StackOverflow