I wanna customize the toggle state of the toggle button in wpf. I want to set a image to the toggle button when it is on and set another image when it is off. TO do so, i th
Here is a ToggleButton with 3 images and a popup:
The images are stored in resources as BitmapImage in order to avoid changing Visuals on trigers.
The image files have to be added to resources and then, the files added to the "Resoruces" folder in the project have to be marked as BuildAction = Resource.
It also applies an opacity to the Image control when the ToggleButton IsEnabled = false;
Code: