So my issue is. I have a listview with various rows. in one row i have a Button to do a certain procedure on the data in that row.
the thing is this Button should not be visible depending on data in the same row.
ie. the row data might be something like:
Name , Age, Address, ID Number, HasApplied ,(Button)
in this instance the button should not appear if the bool value has applied is true.
i have tried using boolean to visibility converters but i can’t seem to get it to work.
any ideas would be greatly appreciated.
cheers
The other option is to use a ViewModel and do the conversion in a property like IsApplyEnabled. When it’s false hide the button. Or you can bind the button to a RelayCommand with a CanExecute override. This would automatically disable the button. You can also override the template to have the Button hide itself when it’s disabled. Many ways to skin a cat.