I have a list of items in WPF datagrid. As source I use ObservableCollection. One of the column is also checkbox binding to the bool property of collection. In the same window, out of the grid, I have also a button. I want the button to be disabled if there is no record with the checkbox checked = all items have the bool property set as false.
I think it wouldnt be any problem to do that in codebehind but I am trying do it in more wpf way using styles, triggers etc. But I dont know how to do this one.