I want to change the background color of a toggle button when the toggle button is checked and vice versa.
How can I achieve that?
if ((sender as ToggleButton).IsChecked ?? false) { btnArchive.Background = (SolidColorBrush)(new BrushConverter().ConvertFrom("#b8860b")); }