How to tie RelayCommand to IsChecked property?

368 Views Asked by At

So far, I had to rely on code behind event to check or uncheck the buttons (e.g. Bold font toolbar button), and I wonder if there is a better and cleaner way to do it using RelayCommand because it is already binding to a RelayCommand for Execute and CanExecute.

Using RelayCommand, a button can easily be enabled or disable by providing CanExecute delegate. Is there a way to tie another delegate to button's (or menu's) IsChecked property?

0

There are 0 best solutions below