I can't seem to find a straight answer on this anywhere. I have a button that I want to Disable UNTIL a DataGrid row is selected. Doesn't matter which row. Once it's deselected I would like it to be disabled again.
It's much easier to just use the automatic evaluation of int to bool provided by WPF:
IsEnabled="{Binding ElementName=YourDataGrid, Path=SelectedItems.Count}"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With